Ubuntu16.04 install azkaban3.37.0

下载源码  git clone https://github.com/azkaban/azkaban.git

修改源码  

  cd /opt/azkaban

  vim azkaban-common/src/main/java/azkaban/jobExecutor/ProcessJob.java  

  将final boolean isExecuteAsUser = this.sysProps.getBoolean(EXECUTE_AS_USER, true);true修改false,不执行job时会报Missing required property ‘azkaban.native.lib'

build

  ./gradlew distTar  

  执行完后,ls 查看目录,若目录不对应可重复执行此命令,正常情况,目录会多了5个:

    azkaban-db、azkaban-exec-server、azkaban-hadoop-security-plugin、azkaban-solo-server、azkaban-web-server

拷贝

   cp azkaban-*/build/distributions/*.tar.gz /opt

解压并重命名

   mkdir /opt/azkaban

   chown -R donny:donny azkaban

   tar zxvf azkaban-db-3.37.0-7-gd400859.tar.gz

   mv azkaban-db-3.37.0-7-gd400859 azkaban-db

   tar zxvf azkaban-exec-server-3.37.0-7-gd400859.tar.gz

   mv azkaban-exec-server-3.37.0-7-gd400859 azkaban/azkaban-exec-server/

   tar zvxf azkaban-hadoop-security-plugin-3.37.0-7-gd400859.tar.gz

   mv azkaban-hadoop-security-plugin-3.37.0-7-gd400859 azkaban-hadoop-security-plugin

   tar zvxf azkaban-solo-server-3.37.0-7-gd400859.tar.gz

   mv azkaban-solo-server-3.37.0-7-gd400859 azkaban-solo-server

   tar zxvf azkaban-web-server-3.37.0-7-gd400859.tar.gz

   mv azkaban-web-server-3.37.0-7-gd400859 azkaban/azkaban-web-server/

   rm *.tar.gz

mysql

  create database azkaban;

  use azkaban;

  source /opt/azkaban-db/create-all-sql-3.37.0-7-gd400859.sql

部署azkaban-web-server
   cp -a /opt/azkaban-solo-server/conf /opt/azkaban-web-server

   gedit /opt/azkaban-web-server/conf/azkaban.properties

   cp ~/log4j.properties conf/

 

   mkdir extlib/

   cp /opt/hadoop/share/hadoop/common/hadoop-common-2.8.1.jar /opt/azkaban-web-server/extlib/

   cp ~/derby.jar extlib/

部署azkaban-exec-server

   cp -a /opt/azkaban/azkaban-solo-server/conf/ /opt/azkaban/azkaban-exec-server/

   gedit /opt/azkaban-exec-server/conf/azkaban.properties

   cp ~/log4j.properties conf/

 

   mkdir extlib/

   cp /opt/hadoop/share/hadoop/common/hadoop-common-2.8.1.jar /opt/azkaban/azkaban-exec-server/extlib/

   cp ~/derby.jar extlib/

启动服务

  bin/azkaban-executor-start.sh

  bin/azkaban-web-start.sh

浏览网页

  localhost:8081

      

posted on 2017-10-09 17:23  唐先生_DowneyJr  阅读(210)  评论(0编辑  收藏  举报

导航