分享

oozie Error: E0505 : E0505:

xiaobaiyang 发表于 2017-7-23 21:55:26 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 4 10088
job.properties配置如下:jobTracker=quickstart.cloudera:8032
#localhost:8021
nameNode=hdfs://quickstart.cloudera:8020

queueName=default
hive_sitexml_path=hdfs://quickstart.cloudera:8020/user/hive/conf/hive-site.xml
queryScriptPath=/user/hive/hql/query.sql

oozie.use.system.libpath=true
oozie.libpath=hdfs://quickstart.cloudera:8020/user/root/share/lib/hive
oozie.wf.appication.path=hdfs://quickstart.cloudera:8020/user/oozie/workflow/workflow.xml


workflow.xml配置如下:
<workflow-app xmlns="uri:oozie:workflow:0.2" name="ooziedemo-wf">
    <start to="hive-query"/>

   <!-- Hive action to execute hive script -->
   <action name="hive-query">
           <hive xmlns="uri:oozie:hive-action:0.2">
               <job-tracker>${jobTracker}</job-tracker>
               <name-node>${nameNode}</name-node>
               <job-xml>/usr/local/hive/conf/hive-default.xml</job-xml>
               <configuration>
                                       <property>
                       <name>mapred.job.queue.name</name>
                       <value>${queueName}</value>
                   </property>
               </configuration>
               <script>${queryScriptPath}</script>
           </hive>
           <ok to="end"/>
           <error to="fail"/>
   </action>

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


执行oozie job -oozie http://localhost:11000/oozie -config job.properties -submit 命令时报:
Error: E0505 : E0505: App definition [hdfs://quickstart.cloudera:8020/user/root/share/lib/hive] does not exist
这个错误,但是这个目录是存在的,从网上搜也没有找到合适的解决方法,
是我配置的问题吗?

已有(4)人评论

跳转到指定楼层
qcbb001 发表于 2017-7-24 09:42:28
hdfs://quickstart.cloudera:8020/user/root/share/lib/hive
这个目录是否存在
存在的话,看看当前用户是否可以访问。
回复

使用道具 举报

nextuser 发表于 2017-7-24 10:39:21
配置下这个属性oozie.coord.application.path
oozie.coord.application.path 需指定目录, coordinate 的文件名必须是标准的:coordinator.xml

回复

使用道具 举报

xiaobaiyang 发表于 2017-7-24 19:16:02
nextuser 发表于 2017-7-24 10:39
配置下这个属性oozie.coord.application.path
oozie.coord.application.path 需指定目录, coordinate 的 ...

是的,我刚开始没有配置coordinate.xml文件,后来配了,现在可以执行了
回复

使用道具 举报

xiaobaiyang 发表于 2017-7-24 19:18:51
现在已经解决了,现在我把自己遇到的问题贴出来,希望大家以后遇到可以参考一下:
问题:
1.E0505问题: hdfs://xxxx:8020/XXXXXX  不存在
配置coordinator.xml,并上传到hdfs上。

2.Error: E1003 : E1003: Invalid coordinator application attributes, Coordinator job with frequency [2] minutes is faster than allowed maximum of 5 minutes
  因为cdh oozie-site.xml 文件中
   <property>
        <name>oozie.service.coord.check.maximum.frequency</name>
        <value>false</value>
        <description>
            Whether to enable checking maximum frequency of coordinator job (default is 5 minutes).
        </description>
    </property>
配置为 'true',要设置为'false',若还不行的话,要将时区oozie.processing.timezone设置为 'GMT+0800',
这个属性在oozie-default.xml中,因为cdh中oozie 服务加载的是oozie-site.xml文件,所以要将
<property>
      <name>oozie.processing.timezone</name>
      <value>GMT+0800</value>
      <description>
      Oozie server timezone. Valid values are UTC and GMT(+/-)####, for example 'GMT+0530' would be India
      timezone. All dates parsed and genered dates by Oozie Coordinator/Bundle will be done in the specified
      timezone. The default value of 'UTC' should not be changed under normal circumtances. If for any reason
      is changed, note that GMT(+/-)#### timezones do not observe DST changes.
      </description>
  </property>
粘贴到oozie-site.xml文件中

最后重启 oozie 服务
service oozie restart,然后就可以正常使用了。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条