Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error injecting constructor, java.io.FileNotFoundException: conf/global.properties (No such file or directory) 启动不了 #80

Open
aileennian opened this issue Feb 7, 2022 · 3 comments

Comments

@aileennian
Copy link

2022-02-07 15:10:07.606 ERROR [main] azkaban.utils.StdOutErrRedirect 65 write - com.google.inject.ProvisionException: Unable to provision, see the following errors:

  1. Error injecting constructor, java.io.FileNotFoundException: conf/global.properties (No such file or directory)
    at azkaban.execapp.FlowRunnerManager.(FlowRunnerManager.java:175)
    at azkaban.execapp.FlowRunnerManager.class(FlowRunnerManager.java:108)
    while locating azkaban.execapp.FlowRunnerManager
    for the 3rd parameter of azkaban.execapp.AzkabanExecutorServer.(AzkabanExecutorServer.java:126)
    at azkaban.execapp.AzkabanExecutorServer.class(AzkabanExecutorServer.java:97)
    while locating azkaban.execapp.AzkabanExecutorServer

1 error
2022-02-07 15:10:07.606 ERROR [main] azkaban.utils.StdOutErrRedirect 65 write - at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1028)
2022-02-07 15:10:07.606 ERROR [main] azkaban.utils.StdOutErrRedirect 65 write - at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1054)
2022-02-07 15:10:07.606 ERROR [main] azkaban.utils.StdOutErrRedirect 65 write - at azkaban.execapp.AzkabanExecutorServer.main(AzkabanExecutorServer.java:178)
2022-02-07 15:10:07.606 ERROR [main] azkaban.utils.StdOutErrRedirect 65 write - Caused by: java.io.FileNotFoundException: conf/global.properties (No such file or directory)
2022-02-07 15:10:07.606 ERROR [main] azkaban.utils.StdOutErrRedirect 65 write - at java.io.FileInputStream.open0(Native Method)
2022-02-07 15:10:07.607 ERROR [main] azkaban.utils.StdOutErrRedirect 65 write - at java.io.FileInputStream.open(FileInputStream.java:195)
2022-02-07 15:10:07.607 ERROR [main] azkaban.utils.StdOutErrRedirect 65 write - at java.io.FileInputStream.(FileInputStream.java:138)
2022-02-07 15:10:07.607 ERROR [main] azkaban.utils.StdOutErrRedirect 65 write - at azkaban.utils.Props.(Props.java:84)
2022-02-07 15:10:07.607 ERROR [main] azkaban.utils.StdOutErrRedirect 65 write - at azkaban.utils.Props.(Props.java:74)
2022-02-07 15:10:07.607 ERROR [main] azkaban.utils.StdOutErrRedirect 65 write - at azkaban.execapp.FlowRunnerManager.(FlowRunnerManager.java:212)
2022-02-07 15:10:07.607 ERROR [main] azkaban.utils.StdOutErrRedirect 65 write - at azkaban.execapp.FlowRunnerManager$$FastClassByGuice$$f5329b23.newInstance()
2022-02-07 15:10:07.607 ERROR [main] azkaban.utils.StdOutErrRedirect 65 write - at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:89)

@aileennian
Copy link
Author

cp conf bin/
下即可。
这是一个BUG吧。

@tuigerphkeeper
Copy link

tuigerphkeeper commented Jun 12, 2022

修改internal/internal-start-executor.sh第20行为azkaban_dir=$(cd $(dirname $0)/../..;pwd)可以正常启动了
这里就是读取exec路径,应该是它这个路径读取的有问题,所以找不到conf目录

更新:
重启后还是这个问题。
将conf/azkaban.properties中executor.global.properties参数由相对路径改成绝对路径解决问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@aileennian @tuigerphkeeper and others