jdbc - Squirrel Setup to connect to Phoenix - HBASE: Error java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.NoSuchMethodError: -


i newbie hbase & phoenix. trying connect hbase via phoenix jdbc driver using squirrel client. somehow seem strange error runtime complains of nosuchmethod exception. have included relevant client jar phoenix-4.4.0-hbase-1.0-client in lib folder of squirrel , have registered driver succesfully. when try connect exception seems bit weird. have xtracted jar , seen indeed method getcurrentuser() exists in org/apache/hadoop/security/usergroupinformation.class file.

java.util.concurrent.executionexception: java.lang.runtimeexception: java.lang.nosuchmethoderror: org.apache.hadoop.security.usergroupinformation.getcurrentuser()lorg/apache/hadoop/security/usergroupinformation; @ java.util.concurrent.futuretask.report(futuretask.java:122) @ java.util.concurrent.futuretask.get(futuretask.java:202) @ net.sourceforge.squirrel_sql.client.mainframe.action.openconnectioncommand.awaitconnection(openconnectioncommand.java:132) @ net.sourceforge.squirrel_sql.client.mainframe.action.openconnectioncommand.access$100(openconnectioncommand.java:45) @ net.sourceforge.squirrel_sql.client.mainframe.action.openconnectioncommand$2.run(openconnectioncommand.java:115) @ java.util.concurrent.executors$runnableadapter.call(executors.java:471) @ java.util.concurrent.futuretask.run(futuretask.java:262) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) @ java.lang.thread.run(thread.java:744) 

i uncovered it. hadoop-0.20.2-core.jar , phoenix-4.4.0-hbase-1.0-client.jar have common overlapping classes, in lib folder of squirrel client. hadoop-0.20.2-core.jar required connect hive phoenix client jar required connect hbase.

whenever need connect 1 or other have exclude 1 of these lib folder while launching squirrel client.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -