[ https://issues.apache.org/jira/browse/HBASE-7623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13702929#comment-13702929 ]
yogesh bedekar commented on HBASE-7623: --------------------------------------- Hi, Thanks for the reply. It will be great if you can help me solve the following issue :- Exception creating HBase connection: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.ipc.WritableRpcEngine not found from bundle XXX Stack trace: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.ipc.WritableRpcEngine not found from bundle XXX at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:867) at org.apache.hadoop.hbase.ipc.HBaseRPC.getProtocolEngine(HBaseRPC.java:99) at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.ensureZookeeperTrackers(HConnectionManager.java:630) at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:882) at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:857) at org.apache.hadoop.hbase.client.HTable.finishSetup(HTable.java:233) at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:173) at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:132) at com.oracle.cep.hbase.impl.HBaseConnection.<init>(HBaseConnection.java:103) at com.oracle.cep.hbase.impl.HBaseDataSource.getConnection(HBaseDataSource.java:91) at com.oracle.cep.processor.cql.impl.CQLExternalDataSourceDelegate.getConnection(CQLExternalDataSourceDelegate.java:256) at oracle.cep.interfaces.input.ExtSource.start(ExtSource.java:123) at oracle.cep.execution.operators.RelSource.initialize(RelSource.java:500) at oracle.cep.planmgr.codegen.RelSourceFactory.setupExecOpt(RelSourceFactory.java:317) at oracle.cep.planmgr.codegen.ExecOptFactory.instantiate(ExecOptFactory.java:234) at oracle.cep.planmgr.codegen.RelSourceFactory.instantiate(RelSourceFactory.java:119) at oracle.cep.planmgr.codegen.OptInst.instOp(OptInst.java:139) at oracle.cep.planmgr.codegen.CodeGenHelper.instantiate(CodeGenHelper.java:121) at oracle.cep.planmgr.PlanManager.instantiate(PlanManager.java:1315) at oracle.cep.metadata.QueryManager.instantiate(QueryManager.java:2029) at oracle.cep.metadata.QueryManager.startQuery(QueryManager.java:572) at oracle.cep.metadata.QueryManager.startNamedQuery(QueryManager.java:358) at oracle.cep.server.CommandDriver.QueryRefNodeDriver.execute(QueryRefNodeDriver.java:61) I am using an osgi bundle AAA in which I have embedded the hbase-0.94.8.jar and hadoop-core-1.0.4.jar. I see that the hbase-0.94.8.jar does contain the class org.apache.hadoop.hbase.ipc.WritableRpcEngine. I have added this bundle AAA as a dependency in my client maven project bundle XXX. Rgds, Yogesh -- Yogesh Bedekar Technical Lead Oracle Event Processing Prestige Lexington Towers Bangalore > Username is not available for HConnectionManager to use in HConnectionKey > ------------------------------------------------------------------------- > > Key: HBASE-7623 > URL: https://issues.apache.org/jira/browse/HBASE-7623 > Project: HBase > Issue Type: Improvement > Components: Client, security > Reporter: Jimmy Xiang > Assignee: Jimmy Xiang > Priority: Minor > Attachments: trunk-7623.patch > > > Sometimes, some non-IOException prevents User.getCurrent() to get a username. > It makes it impossible to create a HConnection. We should catch all > exception here: > {noformat} > try { > User currentUser = User.getCurrent(); > if (currentUser != null) { > username = currentUser.getName(); > } > } catch (IOException ioe) { > LOG.warn("Error obtaining current user, skipping username in > HConnectionKey", > ioe); > } > {noformat} > Not just IOException, so that client can move forward. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira