Support Questions

Find answers, ask questions, and share your expertise

Phoenix and HBase connection

Rising Star

It seems I'm running into a connection issue between Phoenix and HBase, below is the error:

[root@dsun5 bin]# ./ Setting property: [incremental, false] Setting property: [isolation, TRANSACTION_READ_COMMITTED] issuing: !connect none none org.apache.phoenix.jdbc.PhoenixDriver Connecting to SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/usr/hdp/!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/usr/hdp/!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See for an explanation. 17/07/19 22:46:09 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 17/07/19 22:46:11 WARN shortcircuit.DomainSocketFactory: The short-circuit local reads feature cannot be used because libhadoop cannot be loaded. Error: org.apache.hadoop.hbase.DoNotRetryIOException: Class org.apache.phoenix.coprocessor.MetaDataEndpointImpl cannot be loaded Set hbase.table.sanity.checks to false at conf or table descriptor if you want to bypass sanity checks at org.apache.hadoop.hbase.master.HMaster.warnOrThrowExceptionForFailure( at org.apache.hadoop.hbase.master.HMaster.sanityCheckTableDescriptor( at org.apache.hadoop.hbase.master.HMaster.createTable( at org.apache.hadoop.hbase.master.MasterRpcServices.createTable( at org.apache.hadoop.hbase.protobuf.generated.MasterProtos$MasterService$2.callBlockingMethod( at at at org.apache.hadoop.hbase.ipc.RpcExecutor$ at org.apache.hadoop.hbase.ipc.RpcExecutor$ (state=08000,code=101)

phoenixserver.jar has been manually installed on the HBase master.


Rising Star

It appears all the dependency libs are present on the master, as well as all the region nodes, so I just added a parameter 'hbase.table.sanity.checks' in hbase-site.xml, and set it to 'false' in Ambari.


After that, I restarted HBaseMaster as well as all the RegionServers, then phoenix started working.

That's a very bad idea -- you should be figuring out why the class could not be loaded. Without that coprocessor, Phoenix will not function correctly.

Rising Star
@Josh Elser

Agreed, working on a quick demo, and Phoenix appears to be working fine as far as the demo concerns, will come back and spend more time after the demo, thanks.

Thanks for clarifying. Trivial use of phoenix likely would work. It will not work for the full-feature-set of Phoenix. I appreciate your caveat that this should only be used for one-off/demo setups, not for production.

Super Collaborator

You need to install phoenix-server.jar to all Region and Master servers. MetaDataEndpointImpl