天行健,君子以自强不息。——《周易》

欢迎收看大型连续剧《apache-incubator-streampark源码编译本地运行》,介绍我的踩坑史

apache-incubator-streampark源码编译本地运行

apache-incubator-streampark源码编译本地运行(二)

apache-incubator-streampark源码编译本地运行(三)

apache-incubator-streampark源码编译本地运行(四)

apache-incubator-streampark源码编译本地运行(五)

今天更新到第六集

直接启动项目报错:

1
2
3
/Users/achao/IdeaProjects/incubator-streampark/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/controller/ApplicationBuildPipelineController.java:113:2
`)' expected but eof found.
}

解决办法很简单,首先注释掉/删除掉,启动项目

然后是类似的报错

1
2
3
/Users/achao/IdeaProjects/incubator-streampark/streampark-console/streampark-console-service/src/main/java/org/apache/streampark/console/core/controller/ApplicationController.java:439:2
`)' expected but eof found.
}

同样先注释或者删掉,直接启动项目,发现编译成功!

当然,熟悉的报错

1
2
2023-09-06 14:49:18 | ERROR | main | org.springframework.boot.SpringApplication:821] Application run failed
java.lang.ExceptionInInitializerError: [StreamPark] System initialization check failed, The system initialization check failed. If started local for development and debugging, please ensure the -Dapp.home parameter is clearly specified, more detail: https://streampark.apache.org/docs/user-guide/deployment

在配置中加上

1
-Dapp.home=streampark-console/streampark-console-service/target/apache-streampark-2.2.0-SNAPSHOT-incubating-bin/apache-streampark_2.12-2.2.0-SNAPSHOT-incubating-bin

再解除注释或者ctrl+alt+z回滚过来,再次启动项目

成功!!!