oozie安裝遇到問題解決
1.其中:Building Oozie過程,由於聯網下載元件,耗時較長,大約1到數個小時。
hadoop.proxyuser.[OOZIE_SERVER_USER].hosts
[OOZIE_SERVER_HOSTNAME]
hadoop.proxyuser.[OOZIE_SERVER_USER].groups
[USER_GROUPS_THAT_ALLOW_IMPERSONATION]
這個配置必須在叢集namenode主機上配置,否則出現許可權問題。
2.
oozie-site.xml檔案配置
oozie.service.WorkflowAppService.system.libpath
hdfs:///user/
同時,將hadoop 中的core-site.xml配置檔案內容加到oozie 的hadoop-conf目錄下的core-site.xml中。
不進行這樣修改,會報can not locate sharelib的錯誤(我的情況)。正常情況下,下面的命令會列出sharelib的內容
./oozie admin -oozie
3.執行job的時候:
./oozie job -oozie http://localhost:11000/oozie -config /home/hadoop/xiaoft/oozie/oozie-4.1.0/distro/target/oozie-4.1.0/examples/apps/java-main/job.properties -run
config後面的配置檔案,我寫的本地路徑,能夠找到。官網上面寫得應該是hdfs路徑,但我寫hdfs路徑,它找不到。