phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dhaval Modi <dhavalmod...@gmail.com>
Subject Re: Unable to connect to HBase using Phoenix JDBC Driver
Date Thu, 02 Feb 2017 09:58:08 GMT
Hi Anshuman & James,

Thanks for your input.

This issue is resolved. The main reason was the use of HBase-shaded-client
as forced dependency.
I removed it and issue got resolved.


Regards,
Dhaval Modi
dhavalmodi24@gmail.com

On 1 February 2017 at 23:38, James Taylor <jamestaylor@apache.org> wrote:

> Sounds like you're using the wrong jar on the server side. Or perhaps
> you're using a vendor distribution (in which case you'll need to use their
> supported Phoenix version). Please review the installation instructions as
> everything you need is in the one single jar.
> Thanks,
> James
>
> On Wed, Feb 1, 2017 at 9:56 AM Kumar Anshuman <anshuman.mailing@gmail.com>
> wrote:
>
>> Hi Dhaval,
>>
>> This error seems to be due to HBase and Phoenix jar version's mismatch or
>> due to missing of dependency for HBase-protocol-{version}.jar or
>> HBase-protobuff-{version}.jar, you will have to check the proper version of
>> the HBase jars and Phoenix jars used, Please check the versions and
>> validate the different alternatives suggested and try again and inform me
>> if it works or not.
>>
>> Regards,
>> Kumar Anshuman
>>
>> On Wed, Feb 1, 2017 at 9:41 PM, Kumar Anshuman <
>> anshuman.mailing@gmail.com> wrote:
>>
>> Hi again Dhaval,
>>
>> This error seems to be due to HBase and Phoenix jar version's mismatch or
>> due to missing of dependency for HBase-protocol-{version}.jar or
>> HBase-protobuff-{version}.jar, you will have to check the proper version of
>> the HBase jars and Phoenix jars used, Please check the versions and
>> validate the different alternatives suggested and try again and inform me
>> if it works or not.
>>
>> Regards,
>> Kumar Anshuman
>>
>>
>> On Wed, Feb 1, 2017 at 9:19 PM, Dhaval Modi <dhavalmodi24@gmail.com>
>> wrote:
>>
>> 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
>> dhavalmodi24@gmail.com
>>
>> On 1 February 2017 at 21:07, Kumar Anshuman <anshuman.mailing@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
>>
>>
>>
>>

Mime
View raw message