๋ฐ˜์‘ํ˜•
$ wget https://archive.apache.org/dist/hbase/2.2.0/hbase-2.2.0-bin.tar.gz 
$ tar xvzf hbase-2.2.0-bin.tar.gz
$ ln -s hbase-2.2.0-bin hbase 

hbase ์„ค์น˜ ํ›„ ์••์ถ• ํ’€๊ณ  ์‹ฌ๋ณผ๋ฆญ ๋งํฌ๋ฅผ ๊ฑด๋‹ค.

 

<configuration>
<property>
        <name>hbase.rootdir</name>
        <value>hdfs://localhost:9000/hbase</value>
</property>
<property>
        <name>hbase.master.port</name>
        <value>60000</value>
</property>
<property>
        <name>hbase.master.info.port</name>
        <value>60010</value>
</property>
<property>
        <name>hbase.regionserver.info.bindAddress</name>
        <value>0.0.0.0</value>
</property>
<property>
        <name>hbase.regionserver.port</name>
        <value>60020</value>
</property>
<property>
        <name>hbase.regionserver.info.port</name>
        <value>60030</value>
</property>
<property>
        <name>hbase.zookeeper.quorum</name>
        <value>bdh2</value>
</property>
<property>
        <name>hbase.zookeeper.property.clientPort</name>
        <value>2181</value>
</property>
<property>
        <name>hbase.cluster.distributed</name>
        <value>true</value>
</property>
<property>
        <name>hbase.unsafe.stream.capability.enforce</name>
        <value>false</value>
</property>
<property>
        <name>hbase.superuser</name>
        <value>user_name</value>
</property>
<property>
        <name>hbase.coprocessor.region.classes</name>
        <value>org.apache.hadoop.hbase.security.access.AccessController</value>
</property>
<property>
        <name>hbase.coprocessor.master.classes</name>
        <value>org.apache.hadoop.hbase.security.access.AccessController</value>
</property>
<property>
        <name>hbase.rpc.engine</name>
        <value>org.apache.hadoop.hbase.ipc.SecureRpcEngine</value>
</property>
<property>
        <name>hbase.security.authorization</name>
        <value>true</value>
</property>

hbase-site.xml ์—์„œ config ๊ฐ’๋“ค์„ ์„ค์ •ํ•œ๋‹ค. 

$ bin/start-hbase.shโ€‹

hbase bin ๋””๋ ‰ํ„ฐ๋ฆฌ์—์„œ hbase๋ฅผ ์‹คํ–‰ํ•œ๋‹ค.

 

$ jps
------------------------
11410 HMaster 

jvm์— hbase๊ฐ€ ์‹คํ–‰ ์ค‘์ธ ๊ฒƒ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค.

 

 

master ์„œ๋ฒ„์—๋Š” HMaster๊ฐ€ ์˜ฌ๋ผ์˜ค๊ณ 

slave ์„œ๋ฒ„์—๋Š” HRegionserver๊ฐ€ ์˜ฌ๋ผ์˜จ๋‹ค.

 

728x90
๋ฐ˜์‘ํ˜•

+ Recent posts