메뉴 건너뛰기

Cloudera, BigData, Semantic IoT, Hadoop, NoSQL

Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.


hbase HBase 설치하기 – Fully-distributed

구퍼 2013.03.12 15:19 조회 수 : 6011

HBase 설치하기 – Fully-distributed

이번엔 Fully-distributed 모드로 설치를 해보자.
일전에 HBase 설치하기 – Pseudo-distributed 의 설정이 되어있다는 가정이다.
여기에서 추가/변경되는 부분만 설명한다.

또한, 주키퍼는 주키퍼(ZooKeeper) 설치하기 에서처럼
192.168.0.1, 192.168.0.2, 192.168.0.3 인 서버 3군데로 확장되어있다고 하자.

HBase는 Master서버(HMaster)와 Region서버(HRegionServer)를 아래처럼 구성한다.
Master 서버 : 192.168.0.101
Region 서버 : 192.168.0.102, 192.168.0.103

HBase 설치하기 – Pseudo-distributed 에서 설치했던 서버를 Master 로 사용하자.

# cd /usr/local/src

먼저 hbase-site.xml 를 수정한다.

# vi conf/hbase-site.xml

<configuration>
<property>
<name>hbase.rootdir</name>
<value>hdfs://192.168.0.101:9000/hbase</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>192.168.0.1,192.168.0.2,192.168.0.3</value>
</property>
</configuration>

이제 hbase-env.sh 을 수정하자
HBASE_MANAGES_ZK 를 true로 하면, HBase가 Zookeeper를 기동/중지시키게 되는데
이럴 경우 하나의 Zookeeper만 사용할 수 있으므로, 여러 Zookeeper로 분산된 경우에는 false로 한다.

# vi conf/hbase-env.sh

# Tell HBase whether it should manage it’s own instance of Zookeeper or not.
# export HBASE_MANAGES_ZK=true
export HBASE_MANAGES_ZK=false

다음으로, RegionServer 로 사용될 서버 정보들만 regionservers 에 등록한다.
Master서버는 등록하지 않는다. 기본적으로는 localhost 가 등록되어있다.

# vi conf/regionservers

192.168.0.102
192.168.0.103

이제, 설정이 모두 끝났다. 설정을 다른 서버로 복사하자.

특별히 분산 설치를 위한 작업이 있는 것은 아니고,
conf 디렉토리 아래 설정파일들을 나머지 Region 서버에도 그대로 복사하면 해준다.

최초 서버 구성이라면, 폴더를 그대로 다 복사하고.

# rsync -av . root@192.168.0.101:/usr/local/hbase/

추후에 추가 구성을 하는 경우라면 설정파일만 복사하자.

# rsync -av ./conf/ root@192.168.0.101:/usr/local/hbase/conf/

HBase 구동은 Master 서버에서만 HBase를 가동하면 된다.

# bin/start-hbase.sh

번호 제목 날짜 조회 수
750 hue.axes_accessattempt테이블의 username컬럼에 NULL 혹은 space가 들어갈수도 있음. 2021.11.03 90865
749 bananapi 5대(ubuntu계열 리눅스)에 yarn(hadoop 2.6.0)설치하기-ResourceManager HA/HDFS HA포함, JobHistory포함 2015.04.24 22217
748 mapreduce appliction을 실행시 "is running beyond virtual memory limits" 오류 발생시 조치사항 2017.05.04 19792
747 org.apache.hadoop.hdfs.server.common.InconsistentFSStateException: Directory /tmp/hadoop-root/dfs/name is in an inconsistent state: storage directory does not exist or is not accessible. 2013.03.11 16996
746 Hive Query Examples from test code (2 of 2) 2014.03.26 13505
745 Resource temporarily unavailable(자원이 일시적으로 사용 불가능함) 오류조치 2015.11.19 11586
744 drop table로 삭제했으나 tablet server에는 여전히 존재하는 테이블 삭제방법 2021.07.09 10807
743 [Decommission]시 시간이 많이 걸리면서(수일) Decommission이 완료되지 않는 경우 조치 2018.01.03 10199
742 mysql 5.5.34-0ubuntu0.13.04용 설치/진행 화면 2014.09.10 9942
741 [DataNode]org.apache.hadoop.security.KerberosAuthException: failure to login: for principal: hdfs/datanode03@GOOPER.COM from keytab hdfs.keytab오류 2023.04.18 9820
740 insert hbase by hive ... error occured after 5 hours..HMaster가 뜨지 않는 장애에 대한 복구 방법 2014.04.29 9666
739 hive 2.0.1 설치및 mariadb로 metastore 설정 2016.06.03 9020
738 cumulusRDF 1.0.1설치및 "KeyspaceCumulus" keyspace확인하기 file 2016.04.15 8720
737 .git폴더를 삭제하고 다시 git에 추가하고 서버에 반영하는 방법 2017.06.19 8626
736 HBase shell로 작업하기 2013.03.15 8335
735 Ubuntu 16.04 LTS에서 sendmail설치및 설정(수신,발신 가능)및 메일서버 만들기 2017.05.23 7964
734 spark-sql실행시 The specified datastore driver ("com.mysql.jdbc.Driver") was not found in the CLASSPATH오류 발생시 조치사항 2016.06.09 7887
733 dr.who로 공격들어오는 경우 조치방법 file 2018.06.09 7849
732 Ubuntu 16.04LTS 설치후 초기에 주어야 하는 작업(php, apache, mariadb설치및 OS보안설정등) file 2017.05.23 7827
731 Spark에서 Serializable관련 오류및 조치사항 2017.04.21 7743
위로