安装按照官网:http://oozie.apache.org/docs/4.1.0/DG_QuickStart.html
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/
user.name/share/libSystemlibrarypathtouseforworkflowapplications.Thispathisaddedtoworkflowapplicationiftheirjobpropertiessetstheproperty′oozie.use.system.libpath′totrue.这段配置在oozie−site.xml中和oozie−default.xml中都需添加,oozie−default.xml中配置是没有hdfs:///user/
{user.name}/share/lib 中的hdfs://的,不知道为什么。
同时,将hadoop 中的core-site.xml配置文件内容加到oozie 的hadoop-conf目录下的core-site.xml中。
不进行这样修改,会报can not locate sharelib的错误(我的情况)。正常情况下,下面的命令会列出sharelib的内容
./oozie admin -oozie http://localhost:11000/oozie -shareliblist
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路径,它找不到。