启动azkaban时出现User xml file conf/azkaban-users.xml doesn't exist问题解决

时间:2021-12-22 16:50:54

启动azkaban时出现User xml file conf/azkaban-users.xml doesn't exist问题解决

原创  2017年10月22日 17:45:49
  • 85

启动azkaban时出现User xml file conf/azkaban-users.xml doesn’t exist问题解决

  问题详情 
启动azkaban时出现User xml file conf/azkaban-users.xml doesn't exist问题解决

[hadoop@master azkaban]$ ll
total 12
drwxrwxr-x  2 hadoop hadoop 4096 May  1 12:04 azkaban-2.5.0
drwxrwxr-x 10 hadoop hadoop 4096 May  1 15:43 azkaban-executor-2.5.0
drwxrwxr-x  9 hadoop hadoop 4096 May  1 15:35 azkaban-web-2.5.0
[hadoop@master azkaban]$ cd azkaban-web-2.5.0/
[hadoop@master azkaban-web-2.5.0]$ ll
total 164
-rw-rw-r-- 1 hadoop hadoop 47932 May 21 12:47 azkaban-access.log-rw-r--r-- 1 hadoop hadoop   105 Apr 22  2014 azkaban.version-rw-rw-r-- 1 hadoop hadoop 73408 May 21 12:47 azkaban-webserver.log
drwxr-xr-x 2 hadoop hadoop  4096 Apr 22  2014 bin
drwxr-xr-x 2 hadoop hadoop  4096 May  1 15:27 conf-rw-rw-r-- 1 hadoop hadoop     0 May 21 20:22 currentpid
drwxr-xr-x 2 hadoop hadoop  4096 May  1 14:43 extlib-rw-rw-r-- 1 hadoop hadoop  2211 May  1 14:39 keystore
drwxr-xr-x 2 hadoop hadoop  4096 May  1 14:29 lib
drwxr-xr-x 2 hadoop hadoop  4096 Apr 22  2014 plugins
drwxrwxr-x 6 hadoop hadoop  4096 May 21 12:38 temp
drwxr-xr-x 6 hadoop hadoop  4096 May  1 14:29 web
[hadoop@master azkaban-web-2.5.0]$ cd bin/
[hadoop@master bin]$ ll
total 16
-rwxr-xr-x 1 hadoop hadoop  161 Apr 22  2014 azkaban-web-shutdown.sh-rwxr-xr-x 1 hadoop hadoop 1275 Apr 22  2014 azkaban-web-start.sh-rwxr-xr-x 1 hadoop hadoop  116 Apr 22  2014 schedule2trigger.sh-rwxr-xr-x 1 hadoop hadoop  118 Apr 22  2014 start-web.sh
[hadoop@master bin]$ ./azkaban-web-start.sh
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21

启动azkaban时出现User xml file conf/azkaban-users.xml doesn't exist问题解决

lib/commons-dbcp-1.4.jar:./../lib/commons-dbutils-1.5.jar:./../lib/commons-email-1.2.jar:./../lib/commons-fileupload-1.2.1.jar:./../lib/commons-io-2.4.jar:./../lib/commons-jexl-2.1.1.jar:./../lib/commons-lang-2.6.jar:./../lib/commons-logging-1.1.1.jar:./../lib/commons-pool-1.6.jar:./../lib/guava-13.0.1.jar:./../lib/h2-1.3.170.jar:./../lib/httpclient-4.2.1.jar:./../lib/httpcore-4.2.1.jar:./../lib/jackson-core-asl-1.9.5.jar:./../lib/jackson-mapper-asl-1.9.5.jar:./../lib/jetty-6.1.26.jar:./../lib/jetty-util-6.1.26.jar:./../lib/joda-time-2.0.jar:./../lib/jopt-simple-4.3.jar:./../lib/junit-4.8.jar:./../lib/log4j-1.2.16.jar:./../lib/mail-1.4.5.jar:./../lib/mysql-connector-java-5.1.28.jar:./../lib/servlet-api-2.5.jar:./../lib/slf4j-api-1.6.1.jar:./../lib/slf4j-log4j12-1.6.4.jar:./../lib/velocity-1.7.jar:./../lib/velocity-tools-2.0.jar:./../extlib/mysql-connector-java-5.1.21.jar:./../plugins/*/*.jar:/home/hadoop/app/hadoop-2.6.0/conf:/home/hadoop/app/hadoop-2.6.0/*:/home/hadoop/app/hive/conf:/home/hadoop/app/hive/lib/*
[hadoop@master bin]$ 2017/07/05 23:58:24.545 +0800 ERROR [AzkabanWebServer] [Azkaban] Starting Jetty Azkaban Executor...
2017/07/05 23:58:24.633 +0800 INFO [AzkabanServer] [Azkaban] Loading azkaban settings file from ./../conf
2017/07/05 23:58:24.634 +0800 INFO [AzkabanServer] [Azkaban] Loading azkaban properties file
2017/07/05 23:58:24.967 +0800 INFO [AzkabanWebServer] [Azkaban] Setting up Jetty Https Server with port:8443 and numThreads:25
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/home/hadoop/app/azkaban/azkaban-web-2.5.0/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/hadoop/app/hive-1.0.0/lib/hive-jdbc-1.0.0-standalone.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
2017/07/05 23:58:25.362 +0800 INFO [log] [Azkaban] Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
2017/07/05 23:58:26.426 +0800 INFO [AzkabanWebServer] [Azkaban] Loading user manager class azkaban.user.XmlUserManager
2017/07/05 23:58:26.427 +0800 ERROR [AzkabanWebServer] [Azkaban] Could not instantiate UserManager azkaban.user.XmlUserManager
Exception in thread "main" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at azkaban.webapp.AzkabanWebServer.loadUserManager(AzkabanWebServer.java:230)
    at azkaban.webapp.AzkabanWebServer.<init>(AzkabanWebServer.java:181)
    at azkaban.webapp.AzkabanWebServer.main(AzkabanWebServer.java:726)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at azkaban.webapp.AzkabanWebServer.loadUserManager(AzkabanWebServer.java:226)
    ... 2 moreCaused by: java.lang.IllegalArgumentException: User xml file conf/azkaban-users.xml doesn't exist. at azkaban.user.XmlUserManager.parseXMLFile(XmlUserManager.java:87) at azkaban.user.XmlUserManager.<init>(XmlUserManager.java:81) ... 7 more
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25

  先ctrl + c停止它, 
启动azkaban时出现User xml file conf/azkaban-users.xml doesn't exist问题解决

启动azkaban时出现User xml file conf/azkaban-users.xml doesn't exist问题解决

启动azkaban时出现User xml file conf/azkaban-users.xml doesn't exist问题解决

启动azkaban时出现User xml file conf/azkaban-users.xml doesn't exist问题解决

[hadoop@master conf]$ pwd/home/hadoop/app/azkaban/azkaban-web-2.5.0/conf
[hadoop@master conf]$ ll
total 8
-rw-r--r-- 1 hadoop hadoop 1023 May  1 15:12 azkaban.properties-rw-r--r-- 1 hadoop hadoop  330 May  1 15:18 azkaban-users.xml
[hadoop@master conf]$ 
  • 1
  • 2
  • 3
  • 4
  • 5

启动azkaban时出现User xml file conf/azkaban-users.xml doesn't exist问题解决

user.manager.xml.file=/home/hadoop/app/azkaban/azkaban-web-2.5.0/conf/azkaban-users.xml
  • 1

启动azkaban时出现User xml file conf/azkaban-users.xml doesn't exist问题解决

  然后,接着 
启动azkaban时出现User xml file conf/azkaban-users.xml doesn't exist问题解决

[hadoop@master ~]$ su root
Password: 
[root@master hadoop]# cd
[root@master ~]# service mysqld start
Starting mysqld:                                           [  OK  ]
[root@master ~]# 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

启动azkaban时出现User xml file conf/azkaban-users.xml doesn't exist问题解决

2017/07/06 00:06:17.988 +0800 INFO [log] [Azkaban] jetty-6.1.262017/07/06 00:06:18.228 +0800 WARN [log] [Azkaban] failed SslSocketConnector@0.0.0.0:8443: java.io.FileNotFoundException: /home/hadoop/app/azkaban/azkaban-web-2.5.0/bin/keystore (No such file or directory)
2017/07/06 00:06:18.228 +0800 WARN [log] [Azkaban] failed Server@294a671: java.io.FileNotFoundException: /home/hadoop/app/azkaban/azkaban-web-2.5.0/bin/keystore (No such file or directory)
2017/07/06 00:06:18.228 +0800 WARN [AzkabanWebServer] [Azkaban] java.io.FileNotFoundException: /home/hadoop/app/azkaban/azkaban-web-2.5.0/bin/keystore (No such file or directory)
/home/hadoop/app/azkaban/azkaban-web-2.5.0/bin/keystore (No such file or directory)
  • 1
  • 2
  • 3
  • 4

  方法一:

启动azkaban时出现User xml file conf/azkaban-users.xml doesn't exist问题解决

启动azkaban时出现User xml file conf/azkaban-users.xml doesn't exist问题解决 
启动azkaban时出现User xml file conf/azkaban-users.xml doesn't exist问题解决

启动azkaban时出现User xml file conf/azkaban-users.xml doesn't exist问题解决

Azkaban Jetty server properties.

jetty.maxThreads=25
jetty.ssl.port=8443
jetty.port=8071
jetty.keystore=/home/hadoop/app/azkaban/azkaban-web-2.5.0/keystore
jetty.password=mysteel
jetty.keypassword=mysteel
jetty.truststore=/home/hadoop/app/azkaban/azkaban-web-2.5.0/keystore
jetty.trustpassword=mysteel
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

启动azkaban时出现User xml file conf/azkaban-users.xml doesn't exist问题解决

  接着,出现,这界面怎么这么丑,跟平常不一样。 
启动azkaban时出现User xml file conf/azkaban-users.xml doesn't exist问题解决

  具体解决,见 
azkaban web ui界面出现异常诡异“丑”界面的问题解决(图文详解) 
 前期博客 
启动azkaban时出现User xml file conf/azkaban-users.xml doesn’t exist问题解决(图文详解)

启动azkaban时出现User xml file conf/azkaban-users.xml doesn't exist问题解决

  问题详情 
启动azkaban时出现User xml file conf/azkaban-users.xml doesn't exist问题解决

[hadoop@master conf]$ pwd/home/hadoop/app/azkaban/azkaban-web-2.5.0/conf
[hadoop@master conf]$ ll
total 8
-rw-r--r-- 1 hadoop hadoop 1152 Jul  6 00:09 azkaban.properties-rw-r--r-- 1 hadoop hadoop  330 May  1 15:18 azkaban-users.xml
[hadoop@master conf]$ vim azkaban.properties 
  • 1
  • 2
  • 3
  • 4
  • 5

启动azkaban时出现User xml file conf/azkaban-users.xml doesn't exist问题解决

启动azkaban时出现User xml file conf/azkaban-users.xml doesn't exist问题解决

[hadoop@master azkaban-web-2.5.0]$ pwd/home/hadoop/app/azkaban/azkaban-web-2.5.0
[hadoop@master azkaban-web-2.5.0]$ ll
total 168
-rw-rw-r-- 1 hadoop hadoop 47932 May 21 12:47 azkaban-access.log-rw-r--r-- 1 hadoop hadoop   105 Apr 22  2014 azkaban.version-rw-rw-r-- 1 hadoop hadoop 73408 May 21 12:47 azkaban-webserver.log
drwxr-xr-x 3 hadoop hadoop  4096 Jul  6 00:06 bin
drwxr-xr-x 2 hadoop hadoop  4096 Jul  6 00:16 conf-rw-rw-r-- 1 hadoop hadoop     5 Jul  6 00:10 currentpid
drwxr-xr-x 2 hadoop hadoop  4096 May  1 14:43 extlib-rw-rw-r-- 1 hadoop hadoop  2211 May  1 14:39 keystore
drwxr-xr-x 2 hadoop hadoop  4096 May  1 14:29 lib
drwxr-xr-x 2 hadoop hadoop  4096 Apr 22  2014 plugins
drwxrwxr-x 6 hadoop hadoop  4096 May 21 12:38 temp
drwxr-xr-x 6 hadoop hadoop  4096 May  1 14:29 web
[hadoop@master azkaban-web-2.5.0]$ 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12

启动azkaban时出现User xml file conf/azkaban-users.xml doesn't exist问题解决

web.resource.dir=/home/hadoop/app/azkaban/azkaban-web-2.5.0/web/
  • 1

  修改好之后,再次启动。

启动azkaban时出现User xml file conf/azkaban-users.xml doesn't exist问题解决
  

启动azkaban时出现User xml file conf/azkaban-users.xml doesn't exist问题解决

启动azkaban时出现User xml file conf/azkaban-users.xml doesn't exist问题解决