• Azkaban 常见问题记录


    问题一:Unable to build

    I’m running: ./gradlew clean build installDist

    azkaban.executor.ExecutorDaoTest > classMethod FAILED
        java.sql.SQLException: Table "EXECUTION_LOGS" already exists; SQL statement:
        CREATE TABLE execution_logs (
          exec_id     INT NOT NULL,
          name        VARCHAR(128),
          attempt     INT,
          enc_type    TINYINT,
          start_byte  INT,
          end_byte    INT,
          log         LONGBLOB,
          upload_time BIGINT,
          PRIMARY KEY (exec_id, name, attempt, start_byte)
        ) [42101-193] Query: CREATE TABLE execution_logs (
          exec_id     INT NOT NULL,
          name        VARCHAR(128),
          attempt     INT,
          enc_type    TINYINT,
          start_byte  INT,
          end_byte    INT,
          log         LONGBLOB,
          upload_time BIGINT,
          PRIMARY KEY (exec_id, name, attempt, start_byte)
        ) Parameters: []
            at org.apache.commons.dbutils.AbstractQueryRunner.rethrow(AbstractQueryRunner.java:363)
            at org.apache.commons.dbutils.QueryRunner.update(QueryRunner.java:490)
            at org.apache.commons.dbutils.QueryRunner.update(QueryRunner.java:376)
            at azkaban.db.DatabaseSetup.runTableScripts(DatabaseSetup.java:102)
            at azkaban.db.DatabaseSetup.createTables(DatabaseSetup.java:82)
            at azkaban.db.DatabaseSetup.updateDatabase(DatabaseSetup.java:57)
            at azkaban.test.Utils.initTestDB(Utils.java:36)
            at azkaban.executor.ExecutorDaoTest.setUp(ExecutorDaoTest.java:40)
    
    azkaban.executor.ExecutorDaoTest > classMethod FAILED
        java.lang.NullPointerException
            at azkaban.executor.ExecutorDaoTest.destroyDB(ExecutorDaoTest.java:46)
    
    azkaban.executor.ExecutionFlowDaoTest > classMethod FAILED
        java.sql.SQLException: Table "EXECUTION_LOGS" already exists; SQL statement:
        CREATE TABLE execution_logs (
          exec_id     INT NOT NULL,
          name        VARCHAR(128),
          attempt     INT,
          enc_type    TINYINT,
          start_byte  INT,
          end_byte    INT,
          log         LONGBLOB,
          upload_time BIGINT,
          PRIMARY KEY (exec_id, name, attempt, start_byte)
        ) [42101-193] Query: CREATE TABLE execution_logs (
          exec_id     INT NOT NULL,
          name        VARCHAR(128),
          attempt     INT,
          enc_type    TINYINT,
          start_byte  INT,
          end_byte    INT,
          log         LONGBLOB,
          upload_time BIGINT,
          PRIMARY KEY (exec_id, name, attempt, start_byte)
        ) Parameters: []
            at org.apache.commons.dbutils.AbstractQueryRunner.rethrow(AbstractQueryRunner.java:363)
            at org.apache.commons.dbutils.QueryRunner.update(QueryRunner.java:490)
            at org.apache.commons.dbutils.QueryRunner.update(QueryRunner.java:376)
            at azkaban.db.DatabaseSetup.runTableScripts(DatabaseSetup.java:102)
            at azkaban.db.DatabaseSetup.createTables(DatabaseSetup.java:82)
            at azkaban.db.DatabaseSetup.updateDatabase(DatabaseSetup.java:57)
            at azkaban.test.Utils.initTestDB(Utils.java:36)
            at azkaban.executor.ExecutionFlowDaoTest.setUp(ExecutionFlowDaoTest.java:56)
    
    azkaban.executor.ExecutionFlowDaoTest > classMethod FAILED
        java.lang.NullPointerException
            at azkaban.executor.ExecutionFlowDaoTest.destroyDB(ExecutionFlowDaoTest.java:62)
    

    解决

    ./gradlew clean build installDist -x test
    

    问题二 azkaban-web-start.sh无法正常启动

    ERROR AzkabanWebServerModule:66 - Could not instantiate UserManager azkaban.u
    

    解决:
    https://groups.google.com/forum/#!topic/azkaban-dev/xQu_PxI-gUg

    I am new with azkaban, i am also trying to start azkaban web server but i am facing error "temp directory must be set!"  how can i set that, i am new with azkaban.
    for starting azkaban web server, i am using below command
    ./bin/azkaban-web-start.sh
    

    即需要使用bin/azkaban-web-start.sh 进行启动,不能azkaban-web-start.sh ,估计是个Bug

  • 相关阅读:
    UTF8转换为GB编码gb2312转换为utf-8
    localtime 和 localtime_r
    无损音频介绍
    bgr to rgb
    Farseer.Net
    为大家分享一个 Ajax Loading —— spin.js(转)
    HTML5-Ajax文件上传(转)
    Firefox火狐Flash插件卡死问题完美解决方法(转载)
    50 个最棒的 jQuery 日历插件,很齐全了!(转)
    linq to xml学习
  • 原文地址:https://www.cnblogs.com/liuge36/p/12614747.html
Copyright © 2020-2023  润新知