我需要保持一个Spark工作运行24/7,为此,我使用oozie。为此,我编写了一个workflow.xml和 job.properties
文件,包含调用它所需的信息。
但是,当我尝试使用以下命令发送oozie作业时:
oozie job –config /home/oozie/tst/job.properties -run
我得到以下错误信息,非常清楚:
java.io.IOException: configuration is not specified
at org.apache.oozie.cli.OozieCLI.getConfiguration(OozieCLI.java:816)
at org.apache.oozie.cli.OozieCLI.jobCommand(OozieCLI.java:1055)
at org.apache.oozie.cli.OozieCLI.processCommand(OozieCLI.java:686)
at org.apache.oozie.cli.OozieCLI.run(OozieCLI.java:639)
at org.apache.oozie.cli.OozieCLI.main(OozieCLI.java:225)
configuration is not specified
这里的问题是配置文件( job.properties
)在指定的路径上本地存在。我还将包含文件和.jar的目录放在hdfs中。
你知道为什么会失败吗?
oozie是我完成这项任务的最佳工具吗?
2条答案
按热度按时间9avjhtql1#
在命令中指定主机
11000是迪富尔特港
pvabu6sv2#
config参数采用本地路径而不是hdfs。检查中存在的job.properties
/home/oozie/tst/job.properties
检查job.properties是否包含oozie.wf.application.path=PATH_TO_HDFS_PATH_WHERE_WORKFLOW.XML_IS_PRESENT
另外,我看到config参数中的破折号(-)与run参数中的破折号(-)不同