phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject RE: Kerberos Secure cluster and phoenix
Date Mon, 01 Sep 2014 21:43:15 GMT
I am getting this following error really appreciate any comments. please

Error: Call to
failed on local exception: (state=08000,code=101)
Call to failed on local exception:
        at org.apache.phoenix.util.ServerUtil.parseServerException(
       at org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureTableCreated(
        at org.apache.phoenix.query.ConnectionQueryServicesImpl.createTable(
        at org.apache.phoenix.schema.MetaDataClient.createTableInternal(
        at org.apache.phoenix.schema.MetaDataClient.createTable(
        at org.apache.phoenix.compile.CreateTableCompiler$2.execute(
        at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(
        at org.apache.phoenix.jdbc.PhoenixStatement.executeUpdate(
        at org.apache.phoenix.query.ConnectionQueryServicesImpl.init(
        at org.apache.phoenix.jdbc.PhoenixDriver.getConnectionQueryServices(
        at org.apache.phoenix.jdbc.PhoenixEmbeddedDriver.connect(
        at sqlline.SqlLine$DatabaseConnection.connect(
        at sqlline.SqlLine$DatabaseConnection.getConnection(
        at sqlline.SqlLine$Commands.connect(
        at sqlline.SqlLine$Commands.connect(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at sqlline.SqlLine$ReflectiveCommandHandler.execute(
        at sqlline.SqlLine.dispatch(
        at sqlline.SqlLine.initArgs(
        at sqlline.SqlLine.begin(
        at sqlline.SqlLine.mainWithInputRedirection(
        at sqlline.SqlLine.main(
Caused by: org.apache.hadoop.hbase.MasterNotRunningException: Call to failed
on local exception:
        at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation$StubMaker.makeStub(
        at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation$MasterServiceStubMaker.makeStub(
        at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getKeepAliveMasterService(
        at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getHTableDescriptor(
        at org.apache.hadoop.hbase.client.HBaseAdmin.getTableDescriptor(
        at org.apache.hadoop.hbase.client.HBaseAdmin.getTableDescriptor(
        at org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureTableCreated(
        ... 23 more
Caused by: Call to
failed on local exception:
        at org.apache.hadoop.hbase.ipc.RpcClient.callBlockingMethod(
        at org.apache.hadoop.hbase.ipc.RpcClient$BlockingRpcChannelImplementation.callBlockingMethod(
        at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$BlockingStub.isMasterRunning(
        at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation$MasterServiceStubMaker.isMasterRunning(
        at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation$StubMaker.makeStubNoRetries(
        at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation$StubMaker.makeStub(
        ... 29 more
Caused by: Call to
failed on local exception:
        at org.apache.hadoop.hbase.ipc.RpcClient.wrapException(
        at org.apache.hadoop.hbase.ipc.RpcClient.callBlockingMethod(
        ... 34 more
Caused by:
        at org.apache.hadoop.hbase.ipc.RpcClient$Connection.readResponse(
        at org.apache.hadoop.hbase.ipc.RpcClient$
sqlline version 1.1.2

-----Original Message-----
From: James Taylor [] 
Sent: Monday, September 1, 2014 4:35 PM
To: user
Subject: Re: Kerberos Secure cluster and phoenix

In addition to the above, in our 3.1/4.1 release, you can pass through the principal and keytab
file on the connection URL to connect to different secure clusters, like this:


The full URL is now of the form

where <port> and <rootNode> may be absent. We determine that <port> is present
if it's a number and <rootNode> if it begins with a '/'.

One other useful feature from this work, not related to connecting to a secure cluster, you
may specify only the <principal> which would cause a different HConnection to be used
(per unique principal per cluster). In this way, you can pass through different HBase properties
that apply to the HConnection (such as timeout parameters).

For example:

DriverManager.getConnection("jdbc:phoenix:h1:longRunning", props);

where props would contain the HBase config parameters and values for timeouts in a "longRunning"
connection which could be completely different than connection gotten through this URL:

DriverManager.getConnection("jdbc:phoenix:h1:shortRunning", props);


On Mon, Sep 1, 2014 at 2:13 PM, Alex Kamil <> wrote:
> see
> e-cluster.html
> and
> test/CDH5-Security-Guide/CDH5-Security-Guide.html
> On Mon, Sep 1, 2014 at 5:02 PM, <> wrote:
>> Hi all,
>> Any one has success doing a Phoenix connection  to a secure Hbase 
>> Hadoop cluster, if yes can you please kindly let me know the steps 
>> taken, I am on the recent version of phoenix and using Cloudera CDH 5.1 with hbase
>> Appreciate your help.
>> Thanks
>> Deepak Gattala
View raw message