执行以下命令时出错。
oozie job -oozie http://localhost:11000/oozie -config coordinator.properties -run
错误:E0505:E0505:应用程序定义[hdfs:// localhost:8020 / tmp / oozie-app / coordinator /]不存在
有什么建议。
请从工作属性文件中查看以下属性 -
oozie.wf.application.path
这应该指向你有workflow.xml
和coordinator.xml
的HDFS目录
请注意,如果路径存在但不包含workflow.xml
或coordinator.xml
,您仍会收到相同的,误导性的App definition ... does not exist
错误。
首先,你使用workflow.xml
脚本将oozie.wf.application.path
放入给定的hadoop fs -put workflow-full-path to-oozie-wf-application-path
中,
以后你运行oozie脚本如下所述 -
bin/oozie job --oozie http://localhost:11000/oozie/ -config /home/arif/applications/hadoop/oozie-4.3.0/apps/sqoop/job.properties -run
我已经定义了像这样的job.properties
文件 -
nameNode=hdfs://localhost:9000
jobTracker=localhost:9001
queueName=default
value_dfs=1
examplesRoot=/user/oozie/sqoop
exampleRootDir=${examplesRoot}/oozie-moviesdb-sqoop
oozie.use.system.libpath=true
oozie.wf.application.path=${nameNode}${examplesRoot}/
希望通过这个主题来帮助任何人,谢谢。
我在运行工作流程时遇到了类似的问题。我的工作流程的名称是wf-somename.xml
,这是罪魁祸首。我后来改名为workflow.xml
的wf-somename.xml
,这对我有用。