A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

© 梦缠绕的时候 黑马粉丝团   /  2018-7-25 09:44  /  1093 人查看  /  3 人回复  /   0 人收藏 转载请遵从CC协议 禁止商业使用本文

按照文档配置、启动,启动的时候报错,

1、在bin下,启动./azkaban-web-start.sh报错

Using Hadoop from /home/hadoop/hadoop-2.6.0
Using Hive from
./..
:./../lib/azkaban-2.5.0.jar:./../lib/commons-collections-3.2.1.jar:./../lib/commons-configuration-1.8.jar:./../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/*.jar:./../plugins/*/*.jar:/home/hadoop/hadoop-2.6.0/conf:/home/hadoop/hadoop-2.6.0/*:/conf:/lib/*
[root@itcast01 bin]# 2018/07/24 06:05:09.148 +0800 ERROR [AzkabanWebServer] [Azkaban] Starting Jetty Azkaban Executor...
2018/07/24 06:05:09.211 +0800 INFO [AzkabanServer] [Azkaban] Loading azkaban settings file from ./../conf
2018/07/24 06:05:09.212 +0800 INFO [AzkabanServer] [Azkaban] Loading azkaban properties file
2018/07/24 06:05:09.238 +0800 INFO [AzkabanWebServer] [Azkaban] Setting up Jetty Https Server with port:8443 and numThreads:25
2018/07/24 06:05:09.335 +0800 INFO [log] [Azkaban] Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
2018/07/24 06:05:09.480 +0800 INFO [AzkabanWebServer] [Azkaban] Loading user manager class azkaban.user.XmlUserManager
2018/07/24 06:05:09.481 +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 more
Caused 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
more
usage: more [-dflpcsu] [+linenum | +/pattern] name1 name2 ...


2、报错

6.0/conf:/home/hadoop/hadoop-2.6.0/*:/conf:/lib/*
[root@itcast01 bin]# Invalid maximum heap size: -Xmx4G
The specified size exceeds the maximum representable size.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit


是自己在启动配置中的大小超出;设置azkaban-web-start.sh中Xmx4G改成512M;

AZKABAN_OPTS="-Xmx512M"

同理,在启动executor的时候也会报错,同样改为512M,

而上面的命令bin./azkaban-web-start.sh换成在bin下启动./azkaban-web-start.sh出现报错关键在于Caused by: java.lang.IllegalArgumentException: User xml file conf/azkaban-users.xml doesn't exist.

原因是在

vi azkaban.properties中,路径写的是相对路径,所以如果不改动路径,那么就得在正确的路径下启动命令,如在server中启动,用bin./azkaban-web-start.sh

问题就可解决


3 个回复

倒序浏览
奈斯,优秀
回复 使用道具 举报
回复 使用道具 举报
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 加入黑马