1、将编译好的源码里 azkaban-exec-server-0.1.0-SNAPSHOT.tar.gz 解压到安装目录
tar -zxvf azkaban-exec-server-0.1.0-SNAPSHOT.tar.gz -C ~/app/
2、在 azkaban-exec-server-0.1.0-SNAPSHOT 目录下新建 conf 目录
mkdir conf
3、将 azkaban-exec-server-0.1.0-SNAPSHOT 下的 azkaban.properties 文件复制到 azkaban-exec-server-0.1.0-SNAPSHOT/conf
cp azkaban-web-server-0.1.0-SNAPSHOT/conf/azkaban.properties azkaban-exec-server-0.1.0-SNAPSHOT/conf/
4、启动时会遇到这个错误 Exit with error: bin/…/conf/log4j.properties file doesn’t exist.
我们去azkaban-web-server-0.1.0-SNAPSHOT/conf 复制一个过来到azkaban-exec-server-0.1.0-SNAPSHOT/conf/ 下
cp log4j.properties ~/app/azkaban-exec-server-0.1.0-SNAPSHOT/conf/
5、继续启动按照官网的说法是不用其他东西了,但是按照官网走会出错,还是会报一个错误
Error injecting constructor, java.io.FileNotFoundException: conf/global.properties (没有那个文件或目录)
解决:
cp global.properties ~/app/azkaban-exec-server-0.1.0-SNAPSHOT/conf/
6、这下在启动就ok 了
bin/azkaban-executor-start.sh
7、接下来我们就可以执行项目了,但是在执行过程中还有遇到个错误
azkaban.utils.UndefinedPropertyException: Missing required property ‘azkaban.native.lib’
解决:在/home/hadoop/app/azkaban-exec-server-0.1.0-SNAPSHOT 新建个plugins 再在 pluhins 下新建个 jobtypes
mkdir /home/hadoop/app/azkaban-exec-server-0.1.0-SNAPSHOT/plugins
mkdir /home/hadoop/app/azkaban-exec-server-0.1.0-SNAPSHOT/plugins/jobtypes
cp /home/hadoop/source/azkaban-3.40.0/az-exec-util/src/main/c/execute-as-user.c ~/app/azkaban-exec-server-0.1.0-SNAPSHOT/plugins/jobtypes/
gcc execute-as-user.c -o execute-as-user
sudo chown root execute-as-user
sudo chmod 6050 execute-as-user
8、在继续执行项目就ok 了