无法初始化猎鹰客户端对象

时间:2019-07-24 19:13:56

标签: apache-falcon

Falcon SERVER启动给我错误: 当我执行“ ./bin/falcon admin -version”时,它将在控制台上显示以下输出。

Hadoop is installed, adding hadoop classpath to falcon classpath
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/tmp/falcon/falcon-0.11/client/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/tmp/falcon/falcon-0.11/client/lib/falcon-shell-0.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/hdp/2.6.5.0-292/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
ERROR: Unable to initialize Falcon Client object. Cause : Could not authenticate, Authentication failed, status: 503, message: Service Unavailable

falcon.application.logs如下:

2019-07-24 19:22:22,084 ERROR - [main:] ~ Failed to initialize service org.apache.falcon.service.FalconJPAService (ServiceInitializer:49)
java.lang.NullPointerException
    at org.apache.falcon.service.FalconJPAService.getPropsforStore(FalconJPAService.java:111)
    at org.apache.falcon.service.FalconJPAService.init(FalconJPAService.java:87)
    at org.apache.falcon.service.ServiceInitializer.initialize(ServiceInitializer.java:47)
    at org.apache.falcon.listener.ContextStartupListener.contextInitialized(ContextStartupListener.java:56)
    at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)
    at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
    at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
    at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
    at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
    at org.mortbay.jetty.Server.doStart(Server.java:224)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.apache.falcon.util.EmbeddedServer.start(EmbeddedServer.java:58)
    at org.apache.falcon.FalconServer.main(FalconServer.java:120)
2019-07-24 19:22:22,094 ERROR - [main:] ~ Failed startup of context org.mortbay.jetty.webapp.WebAppContext@2f19f2aa{/,/tmp/falcon/falcon-0.11/server/webapp/falcon} (log:87)
java.lang.RuntimeException: org.apache.falcon.FalconException: java.lang.NullPointerException
    at org.apache.falcon.listener.ContextStartupListener.contextInitialized(ContextStartupListener.java:59)
    at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)
    at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
    at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
    at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
    at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
    at org.mortbay.jetty.Server.doStart(Server.java:224)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.apache.falcon.util.EmbeddedServer.start(EmbeddedServer.java:58)
    at org.apache.falcon.FalconServer.main(FalconServer.java:120)
Caused by: org.apache.falcon.FalconException: java.lang.NullPointerException
    at org.apache.falcon.service.ServiceInitializer.initialize(ServiceInitializer.java:50)
    at org.apache.falcon.listener.ContextStartupListener.contextInitialized(ContextStartupListener.java:56)
    ... 11 more
Caused by: java.lang.NullPointerException
    at org.apache.falcon.service.FalconJPAService.getPropsforStore(FalconJPAService.java:111)
    at org.apache.falcon.service.FalconJPAService.init(FalconJPAService.java:87)
    at org.apache.falcon.service.ServiceInitializer.initialize(ServiceInitializer.java:47)
    ... 12 more

我不确定如何解决此问题。任何帮助将不胜感激。

0 个答案:

没有答案