Thanks Anshuman. It was really helpful.

I added HBase-protocol jar in dependency and it got resolved.

But now I am getting different error:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Caused by: java.lang.IllegalArgumentException: Can't find method newStub in
org.apache.phoenix.coprocessor.generated.MetaDataProtos$MetaDataService!
        at org.apache.hadoop.hbase.util.Methods.call(Methods.java:45)
        at
org.apache.hadoop.hbase.protobuf.ProtobufUtil.newServiceStub(ProtobufUtil.java:1675)
        at org.apache.hadoop.hbase.client.HTable$16.call(HTable.java:1750)
        ... 4 more
Caused by: java.lang.NoSuchMethodException:
org.apache.phoenix.coprocessor.generated.MetaDataProtos$MetaDataService.newStub(org.apache.hadoop.hbase.shaded.com.google.protobuf.RpcChannel)
        at java.lang.Class.getMethod(Class.java:1786)
        at org.apache.hadoop.hbase.util.Methods.call(Methods.java:38)
        ... 6 more
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Regards,
Dhaval Modi
dhavalmod...@gmail.com

On 1 February 2017 at 21:07, Kumar Anshuman <anshuman.mail...@gmail.com>
wrote:

> Hi Dhaval,
>
> Have you added HBase-protocol jar in your dependencies?
> This error shows that you have either the incompatible version of
> HBase-protocol jar or you are missing it( might be missed out from the
> classpath).
> Try to include the proper version(for this case 1.1.2) of the jar or set
> this jar as HADOOP_CLASSPATH and see if it works.
>
> Regards,
> Kumar Anshuman
>
>

Reply via email to