How to run HBase shell against a remote cluster How to run HBase shell against a remote cluster hadoop hadoop

How to run HBase shell against a remote cluster


Make changes to the following conf files.

  • For hadoop: core-site.xml, mapred-site.xml.
  • For hbase: hbase-site.xml.

You could create multiple versions of these files and switch between them as needed.


I'm using following command:

hbase --config "path to folder with config files" shell

Folder with configuration should contain at least hbase-site.xml with content:

<configuration>  <property>   <name>hbase.cluster.distributed</name>   <value>true</value> </property>  <property>    <name>hbase.zookeeper.quorum</name> <value>zk1,zk2,zk3</value>  </property>   <property>        <name>zookeeper.znode.parent</name><!--or /hbase-->        <value>/hbase-unsecure</value>    </property></configuration>


change hbase-site.xml add zookeeper host port with hbase server.

<configuration><property>  <name>hbase.zookeeper.quorum</name>  <value>zk.hostname</value></property></configuration>