sqoop2找不到auditloggermanager

2eafrhcq  于 2021-06-04  发布在  Hadoop
关注(0)|答案(1)|浏览(372)

我遵循了这里的“说明”(文档不是很好!)。基本上,我在 sqoop.properties 以及 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
vx6bjr1n

vx6bjr1n1#

您没有指定,但是假设您使用hadoop2,您需要将以下jars位置添加到common.loader属性
/usr/lib/hadoop/.jar
/usr/lib/hadoop/lib/
.jar文件
/usr/lib/hadoop mapreduce/.jar
/usr/lib/hadoop/
.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

相关问题