我是 Oozie 的新手,我正在尝试安装和设置 Oozie。我正在遵循 Apache 网站上提供的说明:“ http://oozie.apache.org/docs/3.3.2/DG_QuickStart.html#Building_Oozie ”。我已经能够完成以下工作:
- 构建执行的发行版
./mkdistro.sh -DskipTests
。 - 下载 ExtJs 2.2 并分解到一个文件夹libext
- 我已经在 AWS 实例中安装了 Hadoop 1.1.2 并在 Ubuntu 12.04 上工作。
- 集群设置为伪分布式,因为我正在学习
使用以下配置更新了 core-site.xml:
<property> <name>hadoop.proxyuser.ubuntu.hosts</name> <value>*</value> </property> <property> <name>hadoop.proxyuser.ubuntu.groups</name> <value>*</value> </property>
执行
oozie-setup.sh prepare-war -hadoop $HADOOP_HOME 0.20.2 -extjs libext
并收到消息“oozie ready to be started”- 执行
ooziedb.sh create -sqlfile oozie.sql -run
。数据库创建成功。 执行
oozied.sh start
没有错误报告只是打印了变量值。
我打开
catalina.out
文件,看到以下消息:Oct 16, 2013 6:56:10 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server} Setting property 'port' to '${oozie.admin.port}' did not find a matching property. Oct 16, 2013 6:56:11 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /vol-cbe153a/jdk1.6.0_45/jre/lib/amd64/server:/vol-cbe153a/jdk1.6.0_45/jre/lib/amd64:/vol-cbe153a/jdk1.6.0_45/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib Oct 16, 2013 6:56:11 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-0 Oct 16, 2013 6:56:11 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1488 ms Oct 16, 2013 6:56:11 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Oct 16, 2013 6:56:11 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.36 Oct 16, 2013 6:56:11 PM org.apache.catalina.startup.HostConfig deployDescriptor INFO: Deploying configuration descriptor oozie.xml ERROR: Oozie could not be started REASON: org.apache.oozie.service.ServiceException: E0000: System property 'oozie.home.dir' not defined
堆栈跟踪:
org.apache.oozie.service.ServiceException: E0000: System property 'oozie.home.dir' not defined
at org.apache.oozie.service.Services.setOozieHome(Services.java:80)
at org.apache.oozie.service.Services.<init>(Services.java:101)
at org.apache.oozie.servlet.ServicesLoader.contextInitialized(ServicesLoader.java:38)
有人可以帮我确定oozie.home.dir
需要在哪里设置属性吗?