修改oozie配置文件
- oozie有元数据服务,默认的元数据数据库是derby,需要修改为mysql;
创建mysql oozie库
/usr/local/mysql/bin/mysql -uroot -p
create database oozie;
grant all privileges on oozie.* to oozie@'%' identified by 'oozie';
FLUSH PRIVILEGES;
配置oozie-site.xml
<property>
<name>oozie.service.JPAService.create.db.schema</name>
<value>true</value>
</property>
<property>
<name>oozie.service.JPAService.jdbc.driver</name>
<value>com.mysql.jdbc.Driver</value>
<description>
JDBC driver class.
</description>
</property>
<property>
<name>oozie.service.JPAService.jdbc.url</name>
<value>jdbc:mysql://192.168.88.240:3306/oozie</value>
<description>
JDBC URL.
</description>
</property>
<property>
<name>oozie.service.JPAService.jdbc.username</name>
<value>oozie</value>
<description>
DB user name.
</description>
</property>
<property>
<name>oozie.service.JPAService.jdbc.password</name>
<value>oozie</value>
<description>
DB user password.
IMPORTANT: if password is emtpy leave a 1 space string, the service trims the value,
if empty Configuration assumes it is NULL.
</description>
</property>
<property>
<name>oozie.service.HadoopAccessorService.hadoop.configurations</name>
<value>=/home/hdfs/software/hadoop/etc/hadoop</value>
<description>
Comma separated AUTHORITY=HADOOP_CONF_DIR, where AUTHORITY is the HOST:PORT of
the Hadoop service (JobTracker, YARN, HDFS). The wildcard '' configuration is
used when there is no exact match for an authority. The HADOOP_CONF_DIR contains
the relevant Hadoop -site.xml files. If the path is relative is looked within
the Oozie configuration directory; though the path can be absolute (i.e. to point
to Hadoop client conf/ directories in the local filesystem.
</description>
</property>
<property>
<name>oozie.service.SparkConfigurationService.spark.configurations</name>
<value>=/home/hdfs/software/spark/conf</value>
<description>
Comma separated AUTHORITY=SPARK_CONF_DIR, where AUTHORITY is the HOST:PORT of
the ResourceManager of a YARN cluster. The wildcard '*' configuration is
used when there is no exact match for an authority. The SPARK_CONF_DIR contains
the relevant spark-defaults.conf properties file. If the path is relative is looked within
the Oozie configuration directory; though the path can be absolute. This is only used
when the Spark master is set to either "yarn-client" or "yarn-cluster".
</description>
</property>
修改 oozie-env.sh
export JAVA_HOME=/opt/soft/jdk
拷贝mysql驱动
- 拷贝mysql到 libext下
- 拷贝oozie-server/lib
运行
261437468.jpg$ bin/oozied.sh start 后台启动
$ bin/oozie-run.sh 前台运行
$ bin/oozie admin -oozie http://localhost:11000/oozie -status 验证服务启动状态
参考:
http://chengjianxiaoxue.iteye.com/blog/2216505
http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece763104d91324215da743ca08c4239c9c008d53f0a1f107be7bd26241b13d3b226215ef15d19b7b0607d66557aa09bb9d51795e0c53f2ef83044720bf64105a51cb8bb44&p=937fd115d9c342a843be9b7c4547c6&newp=c4769a479fb10aff57ed9779595189231610db2151d4da156b82c825d7331b001c3bbfb423241204d8c3786607ac4d5cedfb3671300225a3dda5c91d9fb4c57479c1557f&user=baidu&fm=sc&query=cdh+oozie%B0%B2%D7%B0&qid=dd774f1700011db3&p1=20
网友评论