azkaban的安装和使用

azkaban的使用。

官网: http://azkaban.github.io/

问题

  1. java.sql.SQLException: Unknown column 'ex.executor_id' in 'on clause'
    这是由于3.0.0版本中create-all-sql-3.0.0.sql建表时表executors少了executor_id列。在github上查看源码有下面4行sql语句修改。
1
2
3
4
5
ALTER TABLE active_executing_flows DROP COLUMN host;
ALTER TABLE active_executing_flows DROP COLUMN port;
ALTER TABLE execution_flows ADD COLUMN executor_id INT DEFAULT NULL;
CREATE INDEX executor_id ON execution_flows(executor_id);

参考 https://github.com/azkaban/azkaban/issues/582https://github.com/azkaban/azkaban/pull/591

  1. 加入hdfsviewer之后,启动web时出现异常java.lang.ClassNotFoundException: org.json.JSONException,这是由于json包缺失引起的,直接去http://mvnrepository.com/artifact/org.json/json/20160212下载此json包放在azkaban-web-server-3.0.0/lib/下即可。