์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- HBase
- LeetCode
- ๋ฆฟ์ฝ๋
- ์ํ์น ์คํํฌ
- ํ๋ก์์ฝ์์คํ
- BIGDATA
- ๋ฆฌ๋ ์ค RPM
- airflow
- ๋ฆฌ๋ ์ค
- Apache spark
- kudu
- hadoop
- ์ฑ๊ธ์๋ฒ
- ๋น ๋ฐ์ดํฐ
- CLF-C02
- aws ccp
- ํ๋ก์ค์น
- ์ค์นผ๋ผ ๋ถ
- ansible
- ๋ฐ์ดํฐ๋ถ์์ค์ ๋ฌธ๊ฐ
- ์ค์๋ธ ์ค์น
- standalone
- ์คํํฌ
- elastic stack
- ํ๋ก
- ํ์ด๋ธ
- rpmbuild
- ํด ์ค์น
- ์ค์๋ธ
- ์๋ผ์คํฑ์์น
- Today
- Total
๋ชฉ๋กHBase (4)
data_lab
hbase์๋ ์ฃผํคํผ๊ฐ ๋ด์ฅ๋์ด์๋ค. hbase-env.sh export HBASE_MANAGES_ZK=true export HBASE_MANAGES_ZK=false true๋ฉด hbase์ ๋ด์ฅ๋์ด ์๋ zookeeper ์ฌ์ฉ false๋ฉด zookeeper ์ฌ์ฉ hbase-site.xml hbase.zookeeper.property.clientPort 2181 hbase.zookeeper.quorum hostname1,hostname2,hostname3 zookeeper ํฌํธ ๋ฒํธ์ ์ฃผํคํผ ์คํํ๋ ํธ์คํธ ์ด๋ฆ๋ค์ ์ ์ด์ค์ผ๋๋ค.
hbase ๋ฐ๋ชฌ ์คํ ํ JPS ๋ช ๋ น์ด๋ก ํ๋ก์ธ์ค๋ฅผ ํ์ธํด๋ณด๋ฉด ๋ฆฌ์ ผ์๋ฒ์ ๊ฒฝ์ฐ ์ ์ฌ๋ผ์ค์ง๋ง, HMaster๊ฐ ์คํ๋๋ค๊ฐ ์ผ๋ง์๋ผ์ ์ฃฝ๋๊ฒฝ์ฐ๊ฐ ์๋ค. ์ด๋ด๊ฒฝ์ฐ hbase hmaster log์ hadoop namenode log ๋ ๋ค ํ์ธํด ์ฃผ์ด์ผํ๋ค. hbase ์ค์ ๊ฐ์ด ์๋ชป๋์๊ฑฐ๋ hadoop์ ์ค์ ๊ฐ์ด ์๋ชป๋ ๊ฒฝ์ฐ๊ฐ ์๊ธฐ ๋๋ฌธ์ด๋ค. ๊ธฐ๋ณธ์ ์ผ๋ก hbase localhost ๊ฐ์ ์ถ๊ฐํด์ฃผ์ด์ผํ๋ค. hbase-site.xml hbase.master localhost:60000 hadoop core-site.xml hadoop.proxyuser.hadoop.hosts * hadoop.proxyuser.hadoop.groups *
NoSQL ๊ธฐ๋ฐ ๋ฐ์ดํฐ๋ฒ ์ด์ค์ด๋ค. ํ๋ก์ ๋ฐ์ดํฐ๋ฅผ NoSQL (Key, value) ์์ผ๋ก ์ ์ฅํจ $ /hadoop/sbin/start-all.sh $ ./start-hbase.sh $ ./hbase shell ### hbase test ### create 'test', 'cf' list 'test' describe 'test' put 'test', 'row1', 'cf:a', 'value1' put 'test', 'row2', 'cf:b', 'value2' put 'test', 'row3', 'cf:c', 'value3' scan 'test' ------------------------ ROW COLUMN+CELL row1 column=cf:a, timestamp=1612833812641, value=..
$ 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 ์ค์น ํ ์์ถ ํ๊ณ ์ฌ๋ณผ๋ฆญ ๋งํฌ๋ฅผ ๊ฑด๋ค. hbase.rootdir hdfs://localhost:9000/hbase hbase.master.port 60000 hbase.master.info.port 60010 hbase.regionserver.info.bindAddress 0.0.0.0 hbase.regionserver.port 60020 hbase.regionserver.info.port 60030 hbase.zookeeper.quorum bdh2..