linkedin / coral

Coral is a translation, analysis, and query rewrite engine for SQL and other relational languages.
BSD 2-Clause "Simplified" License
795 stars 187 forks source link

"status":404,"error":"Not Found","message":"","path":"/" #475

Open Yiutto opened 1 year ago

Yiutto commented 1 year ago

. _ _ /\ / '_ () \ \ \ \ ( ( )\ | ' | '| | ' \/ ` | \ \ \ \ \/ _)| |)| | | | | || (| | ) ) ) ) ' |__| .|| ||| |\, | / / / / =========|_|==============|__/=//// :: Spring Boot :: (v2.4.0)

2023-11-13 12:13:15.415 INFO 452076 --- [ main] c.l.c.c.CoralServiceApplication : Starting CoralServiceApplication using Java 1.8.0_292 on dn19 with PID 452076 (/home/hadoop/coral/coral-service/build/classes/java/main started by hadoop in /home/hadoop/coral/coral-service) 2023-11-13 12:13:15.418 INFO 452076 --- [ main] c.l.c.c.CoralServiceApplication : No active profile set, falling back to default profiles: default 2023-11-13 12:13:16.357 INFO 452076 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8086 (http) 2023-11-13 12:13:16.369 INFO 452076 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2023-11-13 12:13:16.369 INFO 452076 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.39] 2023-11-13 12:13:16.478 INFO 452076 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2023-11-13 12:13:16.478 INFO 452076 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 917 ms 2023-11-13 12:13:16.638 INFO 452076 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 2023-11-13 12:13:16.732 WARN 452076 --- [ main] ion$DefaultTemplateResolverConfiguration : Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) 2023-11-13 12:13:16.793 INFO 452076 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8086 (http) with context path '' 2023-11-13 12:13:16.982 INFO 452076 --- [ main] hive.metastore : Trying to connect to metastore with URI thrift://dn7:9084 2023-11-13 12:13:17.062 INFO 452076 --- [ main] hive.metastore : Connected to metastore. 2023-11-13 12:13:17.064 INFO 452076 --- [ main] c.l.c.c.CoralServiceApplication : Started CoralServiceApplication in 1.965 seconds (JVM running for 2.291) 2023-11-13 12:13:22.906 INFO 452076 --- [nio-8086-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet' 2023-11-13 12:13:22.906 INFO 452076 --- [nio-8086-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet' 2023-11-13 12:13:22.907 INFO 452076 --- [nio-8086-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 1 ms <============-> 97% EXECUTING [19m 59s] <============-> 97% EXECUTING [40m 0s] <============-> 97% EXECUTING [1h 0m 1s] <============-> 97% EXECUTING [1h 20m 2s] <============-> 97% EXECUTING [1h 40m 3s] <============-> 97% EXECUTING [2h 0m 4s] <============-> 97% EXECUTING [2h 7m 29s]

(base) [hadoop@dn19 ~]$ curl http://dn19:8086 {"timestamp":"2023-11-13T06:19:59.551+00:00","status":404,"error":"Not Found","message":"","path":"/"

Web UI NOT FOUND

KevinGe00 commented 1 year ago

Hi @Yiutto, the backend and UI run on different ports on localhost. The Spring service you have running is strictly the backend, which you can access using the CLI with instructions here.

The UI must be spun up separately using instructions here, the UI will be (by default) run on http://localhost:3000/. Please note that the instructions here are missing a step where you must cd into https://github.com/linkedin/coral/tree/master/coral-service/frontend and run npm install before running npm run dev. Please let me know if you have further questions.