简体   繁体   English

Oozie 作业错误 - java.io.IOException:未指定配置

[英]Oozie Job Error - java.io.IOException: configuration is not specified

I have created one oozie workflow for hive script to load data in a table.我为 hive 脚本创建了一个 oozie 工作流,用于在表中加载数据。

My workflow.xml contains -我的工作流.xml 包含 -

<workflow-app xmlns="uri:oozie:workflow:0.4" name="Hive-Table-Insertion">
  <start to="InsertData"/>

  <action name="InsertData">
    <hive xmlns="uri:oozie:hive-action:0.4">
      <job-tracker>${jobTracker}</job-tracker>
      <name-node>${nameNode}</name-node>
      <prepare>
        <delete path="${workflowRoot}/output-data/hive"/>
        <mkdir path="${workflowRoot}/output-data"/>
      </prepare>
      <job-xml>${workflowRoot}/hive-site.xml</job-xml>
      <configuration>
        <property>
          <name>oozie.hive.defaults</name>
          <value>${workflowRoot}/hive-site.xml</value>
        </property>
      </configuration>
      <script>load_data.hql</script>
    </hive>
    <ok to="end"/>
    <error to="fail"/>
  </action>

  <kill name="fail">
    <message>Hive failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
  </kill>
  <end name="end"/>
</workflow-app>

My job.properties file contains -我的 job.properties 文件包含 -

nameNode=hdfs://localhost:8020
jobTracker=localhost:8021
queueName=default
workflowRoot=HiveLoadData
oozie.libpath=${nameNode}/user/oozie/share/lib
oozie.wf.application.path=${nameNode}/user/${user.name}/${workflowRoot}

When I try to submit my job using command "oozie job -oozie http://localhost:11000/oozie -config /user/oozie/HiveLoadData/job.properties -submit" I get following error,当我尝试使用命令“oozie job -oozie http://localhost:11000/ oozie -config /user/oozie/HiveLoadData/job.properties -submit”提交我的作业时,出现以下错误,

java.io.IOException: configuration is not specified
        at org.apache.oozie.cli.OozieCLI.getConfiguration(OozieCLI.java:729)
        at org.apache.oozie.cli.OozieCLI.jobCommand(OozieCLI.java:879)
        at org.apache.oozie.cli.OozieCLI.processCommand(OozieCLI.java:604)
        at org.apache.oozie.cli.OozieCLI.run(OozieCLI.java:577)
        at org.apache.oozie.cli.OozieCLI.main(OozieCLI.java:204)
configuration is not specified

The path that you give to the -config parameter must exist on the local drive (not on HDFS).您为-config参数指定的路径必须存在于本地驱动器上(而不是 HDFS 上)。 Make sure that /user/oozie/HiveLoadData/job.properties does exist - do eg ls /user/oozie/HiveLoadData/job.properties on the same machine where you execute the oozie job -oozie... command确保/user/oozie/HiveLoadData/job.properties确实存在 - 例如在执行oozie job -oozie...命令的同一台机器上执行ls /user/oozie/HiveLoadData/job.properties

The path that you give to the -config parameter must exist on the local drive (not on HDFS). 您为-config参数指定的路径必须存在于本地驱动器上(而不是HDFS上)。 Make sure that /user/oozie/HiveLoadData/job.properties does exist - do eg ls /user/oozie/HiveLoadData/job.properties on the same machine where you execute the oozie job -oozie... command 确保/user/oozie/HiveLoadData/job.properties确实存在 - 例如在执行oozie job -oozie ...命令的同一台机器上执行ls /user/oozie/HiveLoadData/job.properties

bin/oozie job --oozie http://node03:11000/oozie -config oozie_works/sereval-actions/job.properties -run

这是一种可以运行的可引导格式。

您可以尝试使用--config参数:

$ oozie job --oozie http://node03:11000/oozie --run --config job.properties

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误:IO_ERROR:java.io.IOException:连接Oozie服务器时出错 - Error: IO_ERROR : java.io.IOException: Error while connecting Oozie server Pig,Oozie和HBase - java.io.IOException:没有用于scheme的文件系统:hbase - Pig, Oozie, and HBase - java.io.IOException: No FileSystem for scheme: hbase oozie java.io.IOException: 方案没有文件系统:hdfs - oozie java.io.IOException: No FileSystem for scheme: hdfs 运行导入作业时遇到IOException:java.io.IOException:javac返回错误 - Encountered IOException running import job: java.io.IOException: Error returned by javac map reduce程序在线程“ main”中显示错误异常java.io.IOException:作业失败 - map reduce program showing error Exception in thread “main” java.io.IOException: Job failed 在Eclipse中运行nutch1.9出现错误CrawlDb更新:java.io.IOException:作业失败 - run nutch1.9 in eclipse got error CrawlDb update: java.io.IOException: Job failed 线程“ main”中的异常java.io.IOException:打开作业jar时出错:hadoop中的ex.jar - Exception in thread “main” java.io.IOException: Error opening job jar: ex.jar in hadoop 线程“主”java.io.IOException 中的异常:作业失败 - Exception in thread "main" java.io.IOException: Job failed 线程“main”中的异常 java.io.IOException:作业失败! 在 mapreduce 中 - Exception in thread "main" java.io.IOException: Job failed! in mapreduce (Sqoop-import) ERROR tool.ImportTool: 运行导入作业时遇到 IOException: java.io.IOException: Hive 退出状态为 9 - (Sqoop-import) ERROR tool.ImportTool: Encountered IOException running import job: java.io.IOException: Hive exited with status 9
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM