ozzie配置和example

修改core-site.xml属性

hadoop.proxyuser.beifeng.hosts
hadoop-senior.ibeifeng.com


hadoop.proxyuser.beifeng.groups
beifeng

oozie-site.xml属性

oozie.service.HadoopAccessorService.hadoop.configurations
*=/opt/cdh-5.3.6/hadoop-2.5.0-cdh5.3.6/etc/hadoop

Comma separated AUTHORITY=HADOOP_CONF_DIR, where AUTHORITY is the HOST:PORT of
the Hadoop service (JobTracker, 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-hadooplibs-4.0.0-cdh5.3.6.tar.gz 到当前目录

Create a libext/ directory in the directory where Oozie was expanded.

拷贝hadooplib目录jar包到libext中
cp -r oozie-4.0.0-cdh5.3.6/hadooplibs/hadooplib-2.5.0-cdh5.3.6.oozie-4.0.0-cdh5.3.6/* libext/

把extjs2.2也拷贝到该目录中/libext/
mv ext-2.2.zip /opt/cdh-5.3.6/oozie-4.0.0-cdh5.3.6/libext/

bin/oozie-setup.sh prepare-war

bin/oozie-setup.sh sharelib create -fs hdfs://hadoop-senior.ibeifeng.com -locallib oozie-sharelib-4.0.0-cdh5.3.6-yarn.tar.gz

bin/ooziedb.sh create -sqlfile oozie.sql -run DB Connection

bin/oozied.sh start

安装完成

运行example

修改以下配置文件
/opt/cdh-5.3.6/oozie-4.0.0-cdh5.3.6/examples/apps/map-reduce/job.properties

nameNode=hdfs://hadoop-senior.ibeifeng.com:8020
jobTracker=hadoop-senior.ibeifeng.com:8021
queueName=default
examplesRoot=examples

oozie.wf.application.path= nameN

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值