메뉴 건너뛰기

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 조회 수 : 3795

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

번호 제목 날짜 조회 수
741 bananapi 5대(ubuntu계열 리눅스)에 yarn(hadoop 2.6.0)설치하기-ResourceManager HA/HDFS HA포함, JobHistory포함 2015.04.24 19291
740 mapreduce appliction을 실행시 "is running beyond virtual memory limits" 오류 발생시 조치사항 2017.05.04 17061
739 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 14838
738 Hive Query Examples from test code (2 of 2) 2014.03.26 11466
737 drop table로 삭제했으나 tablet server에는 여전히 존재하는 테이블 삭제방법 2021.07.09 7943
736 Resource temporarily unavailable(자원이 일시적으로 사용 불가능함) 오류조치 2015.11.19 7708
735 insert hbase by hive ... error occured after 5 hours..HMaster가 뜨지 않는 장애에 대한 복구 방법 2014.04.29 7249
734 [DataNode]org.apache.hadoop.security.KerberosAuthException: failure to login: for principal: hdfs/datanode03@GOOPER.COM from keytab hdfs.keytab오류 2023.04.18 6135
733 [Decommission]시 시간이 많이 걸리면서(수일) Decommission이 완료되지 않는 경우 조치 2018.01.03 6062
732 cumulusRDF 1.0.1설치및 "KeyspaceCumulus" keyspace확인하기 file 2016.04.15 5945
731 HBase shell로 작업하기 2013.03.15 5926
730 dr.who로 공격들어오는 경우 조치방법 file 2018.06.09 5713
729 하둡 분산 파일 시스템을 기반으로 색인하고 검색하기 2013.03.15 5690
728 Ubuntu 16.04LTS 설치후 초기에 주어야 하는 작업(php, apache, mariadb설치및 OS보안설정등) file 2017.05.23 5637
727 hive 2.0.1 설치및 mariadb로 metastore 설정 2016.06.03 5295
726 Spark에서 Serializable관련 오류및 조치사항 2017.04.21 5030
725 [gson]mongodb의 api를 이용하여 데이타를 가져올때 "com.google.gson.stream.MalformedJsonException: Unterminated object at line..." 오류발생시 조치사항 2017.12.11 4808
724 .git폴더를 삭제하고 다시 git에 추가하고 서버에 반영하는 방법 2017.06.19 4552
723 import 혹은 export할때 hive파일의 default 구분자는 --input-fields-terminated-by "x01"와 같이 지정해야함 2014.05.20 4347
722 sqoop작업시 hdfs의 개수보다 더많은 값이 중복되어 oracle에 입력되는 경우가 있음 2014.09.02 4214
위로