Apache Oozie 加载 ShareLib 失败 [英] Apache Oozie failed loading ShareLib

查看:22
本文介绍了Apache Oozie 加载 ShareLib 失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到以下 oozie.log :

i got the following oozie.log :

org.apache.oozie.service.ServiceException: E0104: Could not fully initialize service [org.apache.oozie.service.ShareLibService], Not able to cache sharelib. An Admin needs to install the sharelib with oozie-setup.sh and issue the 'oozie admin' CLI command to update the sharelib

我运行以下命令:

oozie-setup.sh sharelib create -fs hdfs://localhost:54310
oozied.sh start

hdfs dfs -ls /user/hduser/share/lib
15/02/24 18:05:03 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Found 3 items
drwxr-xr-x   - hduser supergroup          0 2015-02-24 17:19 /user/hduser/share/lib/lib_20150224171855
drwxr-xr-x   - hduser supergroup          0 2015-02-24 17:19 /user/hduser/share/lib/lib_20150224171908
drwxr-xr-x   - hduser supergroup          0 2015-02-24 17:29 /user/hduser/share/lib/lib_20150224172857 

但是:

oozie admin -shareliblist -oozie http://localhost:11000/oozie
[Available ShareLib]

oozie admin -sharelibupdate -oozie http://localhost:11000/oozie
null

我的 oozie-site.xml 包含:

my oozie-site.xml contains:

<property>
    <name>oozie.service.WorkflowAppService.system.libpath</name>
    <value>/user/${user.name}/share/lib/</value>
</property>

<property>
    <name>oozie.service.HadoopAccessorService.hadoop.configurations</name>
    <value>*=hadoop-conf</value>
</property>

你知道我的错误吗?

推荐答案

我努力修复同样的错误几天,我终于修复了它.

I struggled to fix the same error for couple of days and I finally fix it.

这与在我的本地文件系统而不是我的 hdfs 上寻找 sharelib 文件夹的 sharelib 服务有关.

It was related to the sharelib service that was looking for sharelib folder on my local file system instead of my hdfs.

所以要修复它:

停止oozie

编辑 conf/oozie-site.xml

edit conf/oozie-site.xml

<property>        
      <name>oozie.service.HadoopAccessorService.hadoop.configurations</name> 
      <value>*=/usr/local/hadoop/etc/hadoop/</value>
</property>

重启 oozie.

瞧!

属性的值默认设置为*=hadoop-conf.我仍然不知道 hadoop-conf 应该指向什么,但在我的情况下它不是配置文件夹 hadoop,所以我将其更改为 *=/usr/local/hadoop/etc/hadoop/.

The value of the property was set to *=hadoop-conf by default. I still don't know yet what hadoop-conf should point to but in my case it wasn't the configuration folder hadoop so I changed it for *=/usr/local/hadoop/etc/hadoop/.

这篇关于Apache Oozie 加载 ShareLib 失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆