phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Serega Sheypak <serega.shey...@gmail.com>
Subject Re: What is the right way to use phoenix driver in java?
Date Tue, 01 Sep 2015 21:58:32 GMT
Ok, I hit this one:
http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.1.2/bk_releasenotes_hdp_2.1/content/ch_relnotes-hdpch_relnotes-hdp-2.1.1-knownissues-phoenix.html

problem is solved.

2015-09-01 23:51 GMT+02:00 Serega Sheypak <serega.sheypak@gmail.com>:

> Hm... If I pass quorum as:
> node01:2181,node04:2181,node05
>
> Exception starts to look like something valid, but still no success.
>
> 2015-09-02 00:50:25,472 ERROR [catalina-exec-73] r.d.p.j.TableCreator
> [TableCreator.java:43] Error while creating table
> java.sql.SQLException: ERROR 102 (08001): Malformed connection url.
> jdbc:phoenix:node01:2181,node04:2181,node05:2181
> at
> org.apache.phoenix.exception.SQLExceptionCode$Factory$1.newException(SQLExceptionCode.java:361)
> ~[phoenix-core-4.3.0-clabs-phoenix-1.0.0.jar:na]
>
>
> 2015-09-01 23:37 GMT+02:00 Serega Sheypak <serega.sheypak@gmail.com>:
>
>> Hi, I wrote ninja-application (ninjaframework.org) with phenix. I used
>> my custom testing utility to test my app. When I deployd my app to server,
>> I got exception:
>>
>> java.sql.SQLException: No suitable driver found for
>> jdbc:phoenix:node01,node04,node05:2181
>>
>> at java.sql.DriverManager.getConnection(DriverManager.java:689)
>> ~[na:1.8.0_45]
>>
>> at java.sql.DriverManager.getConnection(DriverManager.java:270)
>> ~[na:1.8.0_45]
>>
>> at JdbcFacadeImpl.createConnection(JdbcFacadeImpl.java:52)
>> ~[hbase-phoenix-jdbc-1.0-SNAPSHOT.jar:na]
>>
>> at JdbcFacadeImpl.executeDDL(JdbcFacadeImpl.java:30)
>> ~[hbase-phoenix-jdbc-1.0-SNAPSHOT.jar:na]
>>
>> I'm confused with :2181 at the end. I didn't pass it. And code inside
>> phoenix always add it even if I have it.
>>
>>
>> That exception happens if I add port for each quorum member.
>>
>> java.sql.SQLException: No suitable driver found for
>> jdbc:phoenix:node01:2181,node04: 2181,node05:2181:2181
>>
>>
>>
>

Mime
View raw message