Sqoop2可以找到Audit LoggerManager

时间:2014-07-28 23:25:48

标签: java hadoop sqoop sqoop2

我按照“说明”here(文档不太好!)。基本上,我在sqoop.propertiescatalina.properties中设置了一堆路径。

但是在sqoop.sh server start上,日志显示找不到文件审计记录器类。我复制了一堆jar文件,但仍然没有运气!

SEVERE: Exception sending context initialized event to listener instance of class org.apach
e.sqoop.server.ServerInitializer
java.lang.RuntimeException: Failure in server initialization
        at org.apache.sqoop.core.SqoopServer.initialize(SqoopServer.java:57)
        at org.apache.sqoop.server.ServerInitializer.contextInitialized(ServerInitializer.j
ava:36)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206
)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.ja
va:142)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
        at org.apache.catalina.core.StandardService.start(StandardService.java:525)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.apache.sqoop.common.SqoopException: AUDIT_0001:The system was unable to find
 or load audit logger class - Logger Class: org.apache.sqoop.audit.FileAuditLogger
        at org.apache.sqoop.audit.AuditLoggerManager.initializeLoggers(AuditLoggerManager.j
ava:111)
        at org.apache.sqoop.audit.AuditLoggerManager.initialize(AuditLoggerManager.java:80)
        at org.apache.sqoop.core.SqoopServer.initialize(SqoopServer.java:49)
        ... 25 more

Jul 28, 2014 7:11:56 PM org.apache.catalina.core.StandardContext listenerStop
SEVERE: Exception sending context destroyed event to listener instance of class org.apache.
sqoop.server.ServerInitializer
java.lang.NullPointerException
        at org.apache.sqoop.framework.JobManager.destroy(JobManager.java:176)
        at org.apache.sqoop.core.SqoopServer.destroy(SqoopServer.java:36)
        at org.apache.sqoop.server.ServerInitializer.contextDestroyed(ServerInitiali

1 个答案:

答案 0 :(得分:2)

您没有指定,但假设您使用hadoop2,则需要将以下jar位置添加到common.loader属性

  • / usr / lib中/ hadoop的/ *。罐
  • / usr / lib中/ hadoop的/ lib中/ *。罐
  • / usr / lib中/ Hadoop的MapReduce的/ *。罐
  • / usr / lib中/ Hadoop的纱线/ *。罐
  • / usr / lib中/ Hadoop的HDFS / *。罐
common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.home}/../lib/*.jar,/usr/lib/hadoop/*.jar,/usr/lib/hadoop/lib/*.jar,/usr/lib/hadoop-mapreduce/*.jar,/usr/lib/hadoop-yarn/*.jar,/usr/lib/hadoop-hdfs/*.jar