Database Reference
In-Depth Information
[root@hc1r1m2 local]# ls -ld *hbase*
lrwxrwxrwx. 1 root root 12 Apr 8 18:38 hbase -> hbase-0.90.4
drwxrwxr-x. 8 hadoop hadoop 4096 Apr 8 18:36 hbase-0.90.4
Next, set up the HBase configuration. You'll find the configuration files under /usr/local/hbase/conf, as shown:
[hadoop@hc1r1m2 conf]$ pwd
/usr/local/hbase/conf
[hadoop@hc1r1m2 conf]$ ls
hadoop-metrics.properties hbase-site.xml regionservers
hbase-env.sh log4j.properties
You will need to change the contents of the hbase-site.xml file. Specifically, the value of hbase.rootdir needs
to point to the name node on the master server. This allows HBase to store data on HDFS. Also, the distributed flag
( hbase.cluster.distributed ) tells HBase that you are using a cluster.
You also need to specify the HBase master address and port number, as well as the value of the region server
port (i/o server) and the fact that it is on a cluster. Other properties to define are the address of the HBase temporary
directory, details for HBase access to ZooKeeper, and limits for ZooKeeper operation.
To start, you add the properties that follow to the hbase-site.xml file between the configuration open
( <configuration> ) and configuration closing ( </configuration> ) XML tags:
<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://hc1nn:54310/hbase</value>
</property>
<property>
<name>hbase.master</name>
<value>hc1r1m2:60000</value>
</property>
<property>
<name>hbase.master.port</name>
<value>60000</value>
</property>
<property>
<name>hbase.regionserver.port</name>
<value>60020</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
 
Search WWH ::




Custom Search