使用Oozie工作流程和协调器 - E0302:参数错误无效

时间:2012-08-16 11:40:43

标签: hadoop oozie oozie-coordinator

我正在尝试使用协调器运行工作流,但是当我尝试将工作流和协调器XML文件路径设置在一起时,我收到错误。 这就是我的jobs.properties文件的样子:

nameNode=hdfs://10.74.6.155:9000
jobTracker=10.74.6.155:9010
queueName=default
oozie.use.system.libpath=true
oozie.wf.application.path=${nameNode}/user/${user.name}/examples/apps/test/
oozie.coord.application.path=${nameNode}/user/${user.name}/examples/apps/test/

当我使用命令行运行我的工作流程时:

bin\oozie job -oozie http://localhost:11000/oozie -config examples\apps\test\job.properties -run

我收到以下错误:

Error: E0302 : E0302: Invalid parameter [{0}]

我做错了什么?

谢谢!

2 个答案:

答案 0 :(得分:8)

工作流和协调路径不能同时存在于job.properties中。您可以将作业作为工作流程或作为协调来运行。

答案 1 :(得分:0)

仅在属性文件中使用协调器路径,并在Coordinator.xml文件中使用工作流路径。

**oozie.use.system.libpath=true workflowpath=${nameNode}/user/${user.name}/examples/apps/test/ oozie.coord.application.path=${nameNode}/user/${user.name}/examples/apps/test/**

在您的coordinator.xml文件中添加此行

'<app-path>${workflowpath}</app-path>'

相关问题