为什么cdh5.3.6 oozie 4.0无法连接 hadoop ha,认不到share lib?

安装oozie有些问题,按照教程执行以下命令导入oozie share lib
sudo -u oozie /usr/lib/oozie/bin/oozie-setup.sh sharelib create -fs hdfs://cloud61 -locallib /usr/lib/oozie/oozie-sharelib-yarn
一直报Caused by: java.net.ConnectException: Call From hadoop1/192.168.15.61 to cloud61:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  ConnectionRefused

把hdfs://cloud61换成active的那台
sudo -u oozie /oozie/bin/oozie-setup.sh sharelib create -fs hdfs://cloud61:8020 -locallib /oozie/oozie-sharelib-yarn
可以顺利导入,在hdfs中也看到了相应的文件夹和文件

但是执行
sudo -u oozie oozie  admin -shareliblist -oozie http://localhost:11000/oozie
sharelib却是空的,认不到。



摸索了好久,最后发现只要这样配下就行。。。。。

编辑/etc/oozie/conf/hadoop-conf/core-site.xml/  hadoop根目录下的etc/hadoop/core-site.xml添加  

  fs.defaultFS
  hdfs://cloud61:8020

拷贝hdfs-site.xml文件到oozie配置目录
-----$ cp /etc/hadoop/conf/hdfs-site.xml /etc/oozie/conf/hadoop-conf/




你可能感兴趣的:(cloudera)