oozie mysql配置

修改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



oozie.service.JPAService.create.db.schema
true


oozie.service.JPAService.jdbc.driver
com.mysql.jdbc.Driver

JDBC driver class.



oozie.service.JPAService.jdbc.url
jdbc:mysql://192.168.88.240:3306/oozie

JDBC URL.



oozie.service.JPAService.jdbc.username
oozie

DB user name.



oozie.service.JPAService.jdbc.password
oozie

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.



oozie.service.HadoopAccessorService.hadoop.configurations
=/home/hdfs/software/hadoop/etc/hadoop

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.




oozie.service.SparkConfigurationService.spark.configurations
=/home/hdfs/software/spark/conf

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".

修改 oozie-env.sh
export JAVA_HOME=/opt/soft/jdk

拷贝mysql驱动

  • 拷贝mysql到 libext下
  • 拷贝oozie-server/lib

运行

$ bin/oozied.sh start 后台启动
$ bin/oozie-run.sh 前台运行
$ bin/oozie admin -oozie http://localhost:11000/oozie -status 验证服务启动状态

261437468.jpg

参考:
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

你可能感兴趣的:(oozie mysql配置)