当前位置: 首页 > 工具软件 > share lib > 使用案例 >

hue安装运行时候提示:oozie share lib not installed in default location.

欧阳狐若
2023-12-01

hue安装运行时候提示:oozie share lib not installed in default location.

运行:

$ mkdir /tmp/ooziesharelib
$ cd /tmp/ooziesharelib
$ tar xzf /usr/lib/oozie/oozie-sharelib.tar.gz
$ sudo -u oozie hadoop fs -put share /user/oozie/share


<!--当运行上面的命令,如果文件夹不存在需要建文件夹-->
[root@cdhhadoop1 ooziesharelib]# sudo -u hdfs hadoop fs -mkdir /user/oozie/
[root@cdhhadoop1 ooziesharelib]# sudo -u hdfs hadoop fs -mkdir /user/oozie/share
[root@cdhhadoop1 ooziesharelib]# sudo hdfs hadoop fs -chown oozie /user/oozie/share
<!--运行玩上面的命令->
[root@cdhhadoop1 share]# hadoop fs -ls /user/oozie/share/lib
Found 8 items
drwxr-xr-x   - oozie hadoop,root          0 2016-05-11 17:53 /user/oozie/share/lib/distcp
drwxr-xr-x   - oozie hadoop,root          0 2016-05-11 17:53 /user/oozie/share/lib/hive
drwxr-xr-x   - oozie hadoop,root          0 2016-05-11 17:53 /user/oozie/share/lib/hive2
drwxr-xr-x   - oozie hadoop,root          0 2016-05-11 17:53 /user/oozie/share/lib/mapreduce-streaming
drwxr-xr-x   - oozie hadoop,root          0 2016-05-11 17:53 /user/oozie/share/lib/oozie
drwxr-xr-x   - oozie hadoop,root          0 2016-05-11 17:53 /user/oozie/share/lib/pig
-rw-r--r--   3 oozie hadoop,root       1364 2016-05-11 17:53 /user/oozie/share/lib/sharelib.properties
drwxr-xr-x   - oozie hadoop,root          0 2016-05-11 17:53 /user/oozie/share/lib/sqoop

出现上面的问题,主要是,我之前重新格式化了hdfs,并且删除了很多东西。

切记不要乱动hdfs


 类似资料: