Apache Sqoop 启动配置错误:org.apache.hadoop.mapred.YarnClientProtocolProvider not a subtype

Posted

技术标签:

【中文标题】Apache Sqoop 启动配置错误:org.apache.hadoop.mapred.YarnClientProtocolProvider not a subtype【英文标题】:Apache Sqoop startup configuration error: org.apache.hadoop.mapred.YarnClientProtocolProvider not a subtype 【发布时间】:2014-04-08 12:57:41 【问题描述】:

在启动 apache sqoop 时出现以下错误,任何人都可以给出解决方法吗? 使用的版本是Hadoop 2.2,Sqoop 1.99.3。

Hadoop 在运行 sqoop 之前启动。

这些正在运行。 SecondaryNameNode、DataNode、NodeManager、NameNode、ResourceManager、Jps、JobHistoryServer,

java.util.ServiceConfigurationError: org.apache.hadoop.mapreduce.protocol.ClientProtocolProvider: Provider org.apache.hadoop.mapred.YarnClientProtocolProvider not a subtype
    at java.util.ServiceLoader.fail(ServiceLoader.java:214)
    at java.util.ServiceLoader.access$300(ServiceLoader.java:164)
    at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:352)
    at java.util.ServiceLoader$1.next(ServiceLoader.java:428)
    at org.apache.hadoop.mapreduce.Cluster.initialize(Cluster.java:89)
    at org.apache.hadoop.mapreduce.Cluster.<init>(Cluster.java:82)
    at org.apache.hadoop.mapreduce.Cluster.<init>(Cluster.java:75)
    at org.apache.hadoop.mapred.JobClient.init(JobClient.java:470)
    at org.apache.hadoop.mapred.JobClient.<init>(JobClient.java:449)
    at org.apache.sqoop.submission.mapreduce.MapreduceSubmissionEngine.initialize(MapreduceSubmissionEngine.java:113)
    at org.apache.sqoop.framework.JobManager.initialize(JobManager.java:215)
    at org.apache.sqoop.core.SqoopServer.initialize(SqoopServer.java:53)
    at org.apache.sqoop.server.ServerInitializer.contextInitialized(ServerInitializer.java: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.java: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:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
8 Apr, 2014 3:05:30 PM org.apache.catalina.core.StandardContext listenerStop

【问题讨论】:

【参考方案1】:

从此文件夹中删除了 hadoop 依赖 jar。 sqoop-1.99.3-bin-hadoop200/server/webapps/sqoop/WEB-INF/lib

确保此属性具有 hadoop 依赖项common.loader=usr/hadoop/lib/*.jar

【讨论】:

以上是关于Apache Sqoop 启动配置错误:org.apache.hadoop.mapred.YarnClientProtocolProvider not a subtype的主要内容,如果未能解决你的问题,请参考以下文章

Apache sqoop 错误

Apache Sqoop 连接错误

sqoop连接MySQL导入hdfs报错

Sqoop 导入错误:org.apache.hadoop.security.AccessControlException:权限被粘性位拒绝

错误 - 使用 Apache Sqoop 和 Dataproc 从 SQL Server 导入 GCS

安装hadoop下的sqoop1.99.3及配置问题全解决