Oozie的简介,及环境搭建

1.Oozie  

Oozie v3 is a server based Bundle Engine that provides a higher-level oozie abstraction that will batch a set of coordinator applications. The user will be able to start/stop/suspend/resume/rerun a set coordinator jobs in the bundle level resulting a better and easy operational control.

2.Oozie 

  • Oozie is a workflow scheduler system to manage Apache Hadoop jobs.
  • Oozie Workflow jobs are Directed Acyclical Graphs (DAGs) of actions.
  • Oozie Coordinator jobs are recurrent Oozie Workflow jobs triggered by time (frequency) and data availability.触发任务
  • Oozie is integrated with the rest of the Hadoop stack supporting several types of Hadoop jobs out of the box (such as Java map-reduce, Streaming map-reduce, Pig, Hive, Sqoop and Distcp) as well as system specific jobs (such as Java programs and shell scripts).
  • Oozie is a scalable, reliable and extensible system.(可扩展、可信赖的、可扩充的系统)
  • Developers interested in getting more involved with Oozie may join the mailing lists, report bugs, retrieve code from the version control system, and make contributions.


3、三大服务

Budle(对Coordinator的封装) 、Coordinator(时间和时间的触发)、Workflow9(工作流)。

Budle能够执行 start、stop、 suspend、resume、rerun a set coordinators jobs 



4、Oozie 安装部署 

Oozie需要maven自己编译,对相应的版本 或者使用CDH对应系统的版本

所需要的系统环境

  • Unix (tested in Linux and Mac OS X)
  • Java 1.7+
  • Hadoop
  • ExtJS library (optional, to enable Oozie webconsole)


1.需要配置in Hadoop core-site.xml:替换大写字母,配置好后必须重启hadoop

   
   
  1. <property>
  2. <name>hadoop.proxyuser.[OOZIE_SERVER_USER].hosts</name>
  3. <value>[OOZIE_SERVER_HOSTNAME]</value>
  4. </property>
  5. <property>
  6. <name>hadoop.proxyuser.[OOZIE_SERVER_USER].groups</name>
  7. <value>[USER_GROUPS_THAT_ALLOW_IMPERSONATION]</value>
  8. </property>
在Oozie的conf中Oozie-site.xml中配置hadoop的配置文件在哪里
    
    
  1. <property>
  2. <name>oozie.service.HadoopAccessorService.hadoop.configurations</name>
  3. <value>*=/opt/cdh-5.3.6/hadoop-2.5.0-cdh5.3.6/etc/hadoop</value>
  4. <description>
  5. Comma separated AUTHORITY=HADOOP_CONF_DIR, where AUTHORITY is the HOST:PORT of
  6. the Hadoop service (JobTracker, HDFS). The wildcard '*' configuration is
  7. used when there is no exact match for an authority. The HADOOP_CONF_DIR contains
  8. the relevant Hadoop *-site.xml files. If the path is relative is looked within
  9. the Oozie configuration directory; though the path can be absolute (i.e. to point
  10. to Hadoop client conf/ directories in the local filesystem.
  11. </description>
  12. </property>



2.Expand the Oozie hadooplibs  tar.gz  in the same location Oozie distribution  tar.gz  was expanded. A *hadooplibs/* directory will be created containing the Hadoop JARs for the versions of Hadoop that the Oozie distribution supports.

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


4.If using a version of Hadoop bundled in Oozie hadooplibs/ , copy the corresponding Hadoop JARs from hadooplibs/ to the libext/ directory. If using a different version of Hadoop, copy the required Hadoop JARs from such version in the libext/ directory.

If using the ExtJS library copy the ZIP file to the libext/ directory.

下边的命令配置Oozie所有组件的命令

   
   
  1. $ bin/oozie-setup.sh prepare-war [-d directory] [-secure]
  2. sharelib create -fs <FS_URI> [-locallib <PATH>]
  3. sharelib upgrade -fs <FS_URI> [-locallib <PATH>]
  4. db create|upgrade|postupgrade -run [-sqlfile <FILE>]

URI不需要加路径的


   
   
  1. # 创建war包,会自动配置到Oozie server中的webapp中。
  2. bin/oozie-setup.sh prepare-war
  3. # 创建sharelib 文件到hdfs中。
  4. $ bin/oozie-setup.sh  sharelib create -fs hdfs://hadoop.com:8020 -locallib oozie-sharelib-4.0.0-cdh5.3.6-yarn.tar.gz

通过hdfs的NameNode的50070页面结果 创建的目录是以时间我目录进行的创建


创建数据库

   
   
  1. $ bin/ooziedb.sh create -sqlfile oozie.sql -run DB Connection. 
启动Oozie
    
    
  1. $ bin/oozied.sh start
运行其内置的tomcat

  
  
  1. $ bin/oozied.sh run
查看是否运行成功,hadoop为主机名

   
   
  1. $ bin/oozie admin -oozie http://hadoop.com:11000/oozie -status
或者登陆网页,管理Oozie。

   
   
  1. http://hadoop.com:11000
也可以同过logs/oozie.log查看日志情况,检查是否正常启动

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值