I cannot connect to HBase through the Apache phoenix driver. Information about Env: Hadoop-2.6.0.
HBase-0.98.9-hadoop2.
phoenix-4.1.0-server-hadoop2 (stored on all servers in the region).
phoenix-4.1.0-client-hadoop2 (using this jar to create a jdbc connection).
Java client side, I get an exception
Called: org.apache.phoenix.exception.PhoenixIOException: org.apache.hadoop.hbase.DoNotRetryIOException: java.io.IOException: class org.apache.phoenix.coprocessor.MetaDataRegionObserver cannot be loaded on ...
Called: java. io.IOException: class org.apache.phoenix.coprocessor.MetaDataRegionObserver cannot be loaded on org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.testTableCoprocessorAttrs ...
In the HBase Master node logs, I get this error:
2015-02-02 12: 48: 11 550 DEBUG [FifoRpcScheduler.handler1-thread-14] util.FSTableDescriptors: Exception during readTableDecriptor. Current table name = SYSTEM.CATALOG org.apache.hadoop.hbase.TableInfoMissingException: There is no table descriptor file under hdfs: // HadoopNode: 9000 / home / hduser / Data / hbase / data / default / SYSTEM.CATALOG
, phoenix:
zkQuorum = "HbaseMasterNode: 2222";
try
{
Class.forName("org.apache.phoenix.jdbc.PhoenixDriver");
String connectionURL = "jdbc:phoenix:" + zkQuorum;
Connection connection = DriverManager.getConnection(connectionURL);
System.out.println(connection);
}
catch (Exception e)
{
throw new IllegalArgumentException("Create phoenix connection(" + zkQuorum + ") throw exception", e);
}
API- Basic Hbase java , , , Phoenix HBase.