Sorry I misspoke. Hbase is 0.94.6-cdh4.3.0. 

It is working via sqlline, just can't get squirrel SQL working. 

Sent from my iPhone

On Jun 10, 2014, at 11:42 AM, Jeffrey Zhong <> wrote:

Phoenix 3.0 doesn't work on hbase0.96+. Below is the compatibility matrix( In order for Phoenix work on hbase0.96 branch, there is discussion thread on 

  • Phoenix 3.x - HBase 0.94.x
  • Phoenix 4.x - HBase 0.98.1+

From: Justin Workman <>
Reply-To: <>
Date: Monday, June 9, 2014 12:24 PM
To: "" <>
Subject: Connecting via SquirrelSQL

I am attempting to connect to Phoenix via SquirrelSQL and not having much luck. I am using Phoenix-3.0 on Hbase with CDH4.3.0 (Hbase 0.96.4-cdh4.3.0), and SquirrelSQL 3.5.3. Our Hbase environment is protected with Kerberos. 

I have modified the sqlline script to include the correct libraries and modifications to the Java command, and that is working fine. 

Here is what I am doing to try and get SquirrelSQL working. I have tried on both a Mac and Linux system.

I start up off kinit'ing prior to starting SquirrelSQL.

1) Copy hbase-site.xml and core-site.xml to lib directory of SquirrelSQL
2) Open SquirrelSQL->Drivers->Add New
3) I add phoenix-3.0.0-incubating-client-minimal.jar, all of its dependancies, hadoop-common, hadoop-auth and the hbase-security jar from CDH distribution to the extra class path
4) List Drivers and select the Phoenix driver.

Adding the driver at this point succeeds without error. I then proceed to setup the connection and click test, it will hang for a minute and then gives me the following stack trace.

java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.hadoop.hbase.ipc.SecureRpcEngine not found
at java.util.concurrent.FutureTask.get(
at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.awaitConnection(
at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.access$100(
at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand$
at java.util.concurrent.Executors$
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.hadoop.hbase.ipc.SecureRpcEngine not found
at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.executeConnect(
at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.access$000(
at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand$
... 5 more
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.hadoop.hbase.ipc.SecureRpcEngine not found
at org.apache.hadoop.conf.Configuration.getClass(
at org.apache.hadoop.hbase.ipc.HBaseRPC.getProtocolEngine(
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.ensureZookeeperTrackers(
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(
at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(
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 net.sourceforge.squirrel_sql.fw.sql.SQLDriverManager.getConnection(
at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.executeConnect(
... 7 more
Caused by: java.lang.ClassNotFoundException: Class org.apache.hadoop.hbase.ipc.SecureRpcEngine not found
at org.apache.hadoop.conf.Configuration.getClassByName(
at org.apache.hadoop.conf.Configuration.getClass(
... 23 more

FYI, I have also tried to include the hadoop, hbase and phoenix jar's in the lib directory of SquirrelSQL itself, however when adding the driver and selecting List Drivers SquirrelSQL just hangs forever.

Any help or insight would be greatly appreciated. The one thing I am not sure about is the Kerberos integration, and wether or not I will need to wait or include PHOENIX-19. However this patch appears to be for passing the principal and keytab to the driver, not using a ticket cache. I also don't think that is my problem right now, as it does not appear to be getting far enough to authenticate at this point.


NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential, privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any printing, copying, dissemination, distribution, disclosure or forwarding of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and delete it from your system. Thank You.