Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Hbase Blocked state when inserting row


Hbase Blocked state when inserting row

New Contributor

I'm trying to access thanks to a java script to HBase located in another instance.

This is the code :

protected void instantiateHBase() {      
config = HBaseConfiguration.create();    
config.set("hbase.zookeeper.quorum", "MYIP");  
config.set("zookeeper.znode.parent", "/hbase-unsecure");  

try {     
TableName nameTable = TableName.valueOf(NAMETABLE);  
Connection conn = ConnectionFactory.createConnection(config);  
hTable = conn.getTable(nameTable);     
} catch (IOException e) {       
e.printStackTrace();}   }

There is no error at this step. So I think that the connection to the server is okay. But when I want to insert a row in the table, the program stay in blocked state. I don't have any error but nothing happen..

This is the code of the insertion :

Put p = new Put(Bytes.toBytes(informations.getString("id")));

The execution is blocked at the line "hTable.put(p);".


Re: Hbase Blocked state when inserting row

Inspect the debug logging of your application and/or use a tool like `jstack` to inspect what the application is blocked on.

Don't have an account?
Coming from Hortonworks? Activate your account here