flink 连hbase 报错 java.lang.NoSuchMethodError: org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest.newInstance

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

flink 连hbase 报错 java.lang.NoSuchMethodError: org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest.newInstance

张立志
java.lang.NoSuchMethodError: org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest.newInstance(IFLjava/util/List;Ljava/util/List;Ljava/util/List;Lorg/apache/hadoop/yarn/api/records/ResourceBlacklistRequest;)Lorg/apache/hadoop/yarn/api/protocolrecords/AllocateRequest;

    at org.apache.hadoop.yarn.client.api.impl.AMRMClientImpl.allocate(AMRMClientImpl.java:279)




yarn 2.8.4  
hbase 1.4.6  
flink-1.10.0

Reply | Threaded
Open this post in threaded view
|

Re: flink 连hbase 报错 java.lang.NoSuchMethodError: org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest.newInstance

Jark Wu-2
Hi,

This exception is because you don't have proper HBase dependency in your
cluster.
Please refer to the HBase documentation about how to add HBase dependency
jars to HADOOP_CLASSPATH.
Flink will load all jars under HADOOP_CLASSPATH automatically.

Btw, dev mailing list is used for discussing development, please send
questions to the user mailing list. Especially, please send Chinese user
questions to [hidden email].

Best,
Jark

On Thu, 8 Oct 2020 at 17:11, 张立志 <[hidden email]> wrote:

> java.lang.NoSuchMethodError:
> org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest.newInstance(IFLjava/util/List;Ljava/util/List;Ljava/util/List;Lorg/apache/hadoop/yarn/api/records/ResourceBlacklistRequest;)Lorg/apache/hadoop/yarn/api/protocolrecords/AllocateRequest;
>
>     at
> org.apache.hadoop.yarn.client.api.impl.AMRMClientImpl.allocate(AMRMClientImpl.java:279)
>
>
>
>
> yarn 2.8.4
> hbase 1.4.6
> flink-1.10.0
>
>