1

我按照这里的“说明” (文档不是很好!)。sqoop.properties基本上,我在and中设置了一堆路径catalina.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
4

1 回答 1

2

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

  • /usr/lib/hadoop/*.jar
  • /usr/lib/hadoop/lib/*.jar
  • /usr/lib/hadoop-mapreduce/*.jar
  • /usr/lib/hadoop-yarn/*.jar
  • /usr/lib/hadoop-hdfs/*.jar
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
于 2014-08-07T15:27:45.873 回答