码迷,mamicode.com
首页 > 其他好文 > 详细

Azkaban 2.5.0 job type 插件安装

时间:2014-07-16 19:08:09      阅读:2894      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   java   color   文件   

一、环境及软件

安装环境:

  • 安装目录: /usr/local/ae/ankaban
  • Hadoop 安装目录 export HADOOP_HOME=/usr/local/ae/hadoop-1.2.1
  • azkaban-executor-2.5.0安装目录:/usr/local/ae/azkaban/azkaban-executor-2.5.0

安装软件:

Azkaban jobtype plugin source:github.com/azkaban/azkaban-plugins/tree/master/plugins/jobtype

二、配置jobtype

  1. 解压 azkaban-jobtype-2.5.0.tar.gz 到 $AZKABAN-EXECUTOR_HOME/plugins/jobtypes 目录下
    user@ae01:/usr/local/ae/azkaban/azkaban-executor-2.5.0/plugins/jobtypes$ tar -zxvx azkaban--jobtype-2.5.0.tar.gz
  2. jobtype properties 配置
    common.properties
    ## everything that the user job can know
    
    hadoop.home=/usr/local/ae/hadoop-1.2.1
    #hive.home=
    #pig.home=
    
    azkaban.should.proxy=false
    jobtype.global.classpath=${hadoop.home}/hadoop-core-1.2.1.jar,${hadoop.home}/*,${hadoop.home}/conf/,${hadoop.home}/lib/*

    commonprivate.properties

    ## hadoop security manager setting common to all hadoop jobs
    hadoop.security.manager.class=azkaban.security.HadoopSecurityManager_H_1_0
    
    ## hadoop security related settings
    
    # proxy.keytab.location=YOUR_AZKABAN_KERBEROS_PRINCIPAL
    #  proxy.user=KEYTAB_LOCATION
    
    azkaban.should.proxy=false
    obtain.binary.token=false
    # obtain.namenode.token=true
    # obtain.jobtracker.token=true
    
    # global classpath items for all jobs. e.g. hadoop-core jar, hadoop conf
    #jobtype.global.classpath=${hadoop.home}/*,${hadoop.home}/conf
    
    # global jvm args for all jobs. e.g. java.io.temp.dir, java.library.path
    #jobtype.global.jvm.args=
    
    # hadoop
    hadoop.home=/usr/local/ae/hadoop-1.2.1
    #pig.home=
    #hive.home=

三、配置 jobtype 插件安装目录到 Azkaban-executor

  1. 配置 azkaban.properties
    在 azkaban.properties 文件中添加以下配置
    # Azkaban JobTypes Plugins
    azkaban.jobtype.plugin.dir=../plugins/jobtypes

四、重启 Azkaban-executor

user@ae01:/usr/local/ae/azkaban/azkaban-executor-2.5.0/bin$ sh azkaban-executor-shutdown.sh
user@ae01:/usr/local/ae/azkaban/azkaban-executor-2.5.0/bin$ sh azkaban-executor-start.sh

五、HadoopJava jobtype profile

type=hadoopJava
#jvm.args
job.class=×××××××××××××××××××××****
main.args=×××××××××
method.run=run
#method.cancel
classpath=./lib/*,/usr/local/ae/hadoop-1.2.1/*,/usr/local/ae/hadoop-1.2.1/lib/*,/usr/local/ae/hbase-0.94.8/*,/usr/local/ae/hbase-0.94.8/lib/*
#dependencies
#getJobGeneratedProperties

Note:若 ${job.class} 继承自 AbstractHadoopJob 则需要设置 FileIutPutFormat 与 FileOutPutFormat

 

 

 

 

 

 

Azkaban 2.5.0 job type 插件安装,布布扣,bubuko.com

Azkaban 2.5.0 job type 插件安装

标签:style   blog   http   java   color   文件   

原文地址:http://www.cnblogs.com/tannerBG/p/3844833.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!