# Azkaban mysql settings by default. Users should configure their own username and password. database.type=mysql mysql.port=3306 mysql.host=Linux123 mysql.database=azkaban mysql.user=root mysql.password=12345678 mysql.numconnections=100
[root@Linux123 software]# cd /opt/lagou/servers/azkaban/azkaban-exec-server-0.1.0-SNAPSHOT/conf/
[root@Linux123 conf]# vim azkaban.properties
# Azkaban Personalization Settings azkaban.name=Test azkaban.label=My Local Azkaban azkaban.color=#FF3601 azkaban.default.servlet.path=/index web.resource.dir=web/ default.timezone.id=Asia/Shanghai # Azkaban UserManager class user.manager.class=azkaban.user.XmlUserManager user.manager.xml.file=conf/azkaban-users.xml # Loader for projects executor.global.properties=conf/global.properties azkaban.project.dir=projects # Where the Azkaban web server is located azkaban.webserver.url=https://Linux122:8443 # Azkaban mysql settings by default. Users should configure their own username and password. database.type=mysql mysql.port=3306 mysql.host=Linux123 mysql.database=azkaban mysql.user=root mysql.password=12345678 mysql.numconnections=100 # Azkaban Executor settings executor.maxThreads=50 executor.port=12321 executor.flow.threads=30
2022/07/07 10:19:17.506 +0100 ERROR [MySQLDataSource] [Azkaban] Failed to find write-enabled DB connection. Wait 15 seconds and retry.No.Attempt = 4 java.sql.SQLException: Cannot create PoolableConnectionFactory (Access denied for user 'root'@'Linux123' (using password: YES)) at org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2294) at org.apache.commons.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2039) at azkaban.db.MySQLDataSource.getConnection(MySQLDataSource.java:76) at org.apache.commons.dbutils.AbstractQueryRunner.prepareConnection(AbstractQueryRunner.java:175) at org.apache.commons.dbutils.QueryRunner.query(QueryRunner.java:286) at azkaban.db.DatabaseOperator.query(DatabaseOperator.java:68) at azkaban.executor.ExecutorDao.fetchExecutor(ExecutorDao.java:63) at azkaban.executor.JdbcExecutorLoader.fetchExecutor(JdbcExecutorLoader.java:272) at azkaban.execapp.AzkabanExecutorServer.insertExecutorEntryIntoDB(AzkabanExecutorServer.java:264) at azkaban.execapp.AzkabanExecutorServer.start(AzkabanExecutorServer.java:242) at azkaban.execapp.AzkabanExecutorServer.launch(AzkabanExecutorServer.java:152) at azkaban.execapp.AzkabanExecutorServer.main(AzkabanExecutorServer.java:148) Caused by: java.sql.SQLException: Access denied for user 'root'@'Linux123' (using password: YES) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1086) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4237) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4169) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:928) at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1750) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1290) at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2493) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2526) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2311) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:834) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at com.mysql.jdbc.Util.handleNewInstance(Util.java:411) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:416) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:347) at org.apache.commons.dbcp2.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:39) at org.apache.commons.dbcp2.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:256) at org.apache.commons.dbcp2.BasicDataSource.validateConnectionFactory(BasicDataSource.java:2304) at org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2290) ... 11 more
# 修改user表 update user set Host='%'' where User='root';
# 刷新 flush privileges;
# 退出即可 quit;
再次启动exec-server,查看启动日志如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
2022/07/07 10:22:47.359 +0100 INFO [JobCallbackRequestMaker] [Azkaban] Initialization for azkaban.execapp.event.JobCallbackRequestMaker is completed 2022/07/07 10:22:47.360 +0100 INFO [JobCallbackManager] [Azkaban] Initialization completed azkaban.execapp.event.JobCallbackManager 2022/07/07 10:22:47.360 +0100 INFO [JobCallbackManager] [Azkaban] azkabanHostName Linux122:8443 2022/07/07 10:22:47.360 +0100 INFO [AzkabanExecutorServer] [Azkaban] Registering MBeans... 2022/07/07 10:22:47.367 +0100 INFO [AzkabanExecutorServer] [Azkaban] Bean azkaban.jmx.JmxJettyServer registered. 2022/07/07 10:22:47.368 +0100 INFO [AzkabanExecutorServer] [Azkaban] Bean azkaban.execapp.jmx.JmxFlowRunnerManager registered. 2022/07/07 10:22:47.370 +0100 INFO [AzkabanExecutorServer] [Azkaban] Bean azkaban.execapp.jmx.JmxJobMBeanManager registered. 2022/07/07 10:22:47.370 +0100 INFO [AzkabanExecutorServer] [Azkaban] Bean azkaban.execapp.jmx.JmxJobCallback registered. 2022/07/07 10:22:47.370 +0100 INFO [AzkabanExecutorServer] [Azkaban] No value for property: jmx.attribute.processor.class was found 2022/07/07 10:22:47.370 +0100 INFO [log] [Azkaban] jetty-6.1.26 2022/07/07 10:22:47.391 +0100 INFO [log] [Azkaban] Started SocketConnector@0.0.0.0:12321 2022/07/07 10:22:47.620 +0100 INFO [AzkabanExecutorServer] [Azkaban] Started Executor Server on Linux123:12321 2022/07/07 10:22:47.631 +0100 INFO [AzkabanExecutorServer] [Azkaban] Setting timezone to Asia/Shanghai 2022/07/07 10:23:47.120 +0100 INFO [FlowRunnerManager] [Azkaban] # of executing flows: 0 2022/07/07 10:24:47.124 +0100 INFO [FlowRunnerManager] [Azkaban] # of executing flows: 0 2022/07/07 10:24:47.125 +0100 INFO [FlowRunnerManager] [Azkaban] Cleaning recently finished 2022/07/07 10:25:47.126 +0100 INFO [FlowRunnerManager] [Azkaban] # of executing flows: 0 2022/07/07 10:26:47.128 +0100 INFO [FlowRunnerManager] [Azkaban] # of executing flows: 0 2022/07/07 10:26:47.128 +0100 INFO [FlowRunnerManager] [Azkaban] Cleaning recently finished
启动web-server
1 2 3
#启动web-server [root@Linux122 jobtypes]# cd /opt/lagou/servers/azkaban/azkaban-web-server-0.1.0-SNAPSHOT [root@Linux122 azkaban-web-server-0.1.0-SNAPSHOT]# bin/start-web.sh
启动webServer之后通过安装包根⽬录下查看对应启动⽇志
1 2 3 4 5 6 7
Caused by: azkaban.executor.ExecutorManagerException: No active executor found at azkaban.executor.ExecutorManager.setupExecutors(ExecutorManager.java:253) at azkaban.executor.ExecutorManager.<init>(ExecutorManager.java:131) at azkaban.executor.ExecutorManager$$FastClassByGuice$$e1c1dfed.newInstance(<generated>) at com.google.inject.internal.DefaultConstructionProxyFactory$FastClassProxy.newInstance(DefaultConstructionProxyFactory.java:89) at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:111) at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90)