bin/oozie-setup.sh prepare-war
#打包oozie war包
bin/ooziedb.sh create -sqlfile oozie.sql -run
#初始化数据库
vim oozie-server/conf/server.xml
#修改服务器端conf/server.xml文件,注释掉下面的记录
错误二:
错误提示:Error: E0100: Could not initialize service [org.apache.oozie.service.HadoopAccessorService], could not find hadoop configuration directory: /var/local/2.6.0/etc/hadoop
Stack trace for the error was (for debug purposes):
--------------------------------------
org.apache.oozie.service.ServiceException: E0100: Could not initialize service [org.apache.oozie.service.HadoopAccessorService], could not find hadoop .2.0/conf/ /var/local/hadoop/hadoop-2.6.0/etc/hadoop
at org.apache.oozie.service.HadoopAccessorService.parseConfigDirs(HadoopAccessorService.java:230)
at org.apache.oozie.service.HadoopAccessorService.loadHadoopConfigs(HadoopAccessorService.java:246)
at org.apache.oozie.service.HadoopAccessorService.init(HadoopAccessorService.java:147)
at org.apache.oozie.service.HadoopAccessorService.init(HadoopAccessorService.java:106)
at org.apache.oozie.service.Services.setServiceInternal(Services.java:386)
at org.apache.oozie.service.Services.setService(Services.java:372)
at org.apache.oozie.service.Services.loadServices(Services.java:305)
at org.apache.oozie.service.Services.init(Services.java:213)
at org.apache.oozie.tools.OozieSharelibCLI.run(OozieSharelibCLI.java:146)
at org.apache.oozie.tools.OozieSharelibCLI.main(OozieSharelibCLI.java:57)
$HADOOP_HOME/sbin/mr-jobhistory-daemon.sh start historyserver