Which code do we use to open the connection in Hbase?



Which code do we use to open the connection in Hbase?..

Answer / Annu Singh

To open a connection in Apache HBase, you can use the HBase API's HBaseAdmin or HConnection classes. Here's an example using HConnection:nn```javanConfiguration conf = HBaseConfiguration.create();nHConnection connection = (HConnection) ConnectionFactory.createConnection(conf);n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apache HBase Interview Questions

What is ttl (time to live) in hbase?

1 Answers  


What is use of tools command?

1 Answers  


What is the use of shutdown command?

1 Answers  


What is HBase?

1 Answers  


Is it possible to iterate through the rows of HBase table in reverse order?

1 Answers  


What is Apache HBase?

1 Answers  


What is the role of zookeeper in hbase?

1 Answers  


Mention what are the key components of hbase?

1 Answers  


What is the use of MasterServer?

1 Answers  


What is a Column family in hbase?

1 Answers  


hbase support syntax structure like sql. Yes or no?

1 Answers  


What happens if you alter the block size of a column family on an already occupied database?

1 Answers  


Categories