Oozie错误解决方法

错误一:

错误提示:ERROR: Bad Request;default/E1004 : E1004: Expression language evaluation error, Unable to evaluate :${now(0,-5)}:
CausedBy: E1004: Expression language evaluation error, Unable to evaluate :${now(0,-5)}:
解决方法:

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)

解决方法:重新配置这个目录
         [hdfs@zte-1 oozie-4.2.0]$ vim conf/oozie-site.xml
错误三:
Oozie重启步骤:
     1.进入/var/local/hadoop/oozie-4.2.0
     2.将Oozie停止运行./bin/oozie-stop.sh
     3.重新进行打包war包 ./bin/oozie-setup.sh prepare-war
     4.重新打开Oozie:./bin/oozie-start.sh
错误四:

错误提示:
 Caused by: java.net.ConnectException: Call From zte-1/192.168.83.128 to zte-1:10020 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefuse 
解决方法:根据错误提示,发现是10020端口属于Jobhistory进程,于是启动history进程

$HADOOP_HOME/sbin/mr-jobhistory-daemon.sh start historyserver

你可能感兴趣的:(hadoop)