How to run HBase shell against a remote cluster

sangfroid picture sangfroid · Apr 19, 2012 · Viewed 14.7k times · Source

I'm running HBase in pseudo-distributed mode on my workstation. We also have HBase running on a cluster. Using the HBase shell, I'd like to access the HBase instance that's running on the cluster from my workstation. I would like to do this without logging into one of the cluster machines.

With Hadoop, you can run jobs on a remote cluster by specifying the -conf parameter and supplying an alternate version of hadoop-site.xml. Is there an equivalent for the HBase shell?

I'm running cloudera cdh3u3 on my workstation and on the cluster machines.

Answer

mohit6up picture mohit6up · Apr 19, 2012

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.