-
-
Save yijiangwen/275cc025b657a87098bb48e46372dd07 to your computer and use it in GitHub Desktop.
大数据平台之HBase分布式安装
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 当前安装的版本:HBase 1.2.6 | |
| curl -SL https://mirrors.tuna.tsinghua.edu.cn/apache/hbase/1.2.6/hbase-1.2.6-bin.tar.gz | tar zx -C /usr/local && \ | |
| ln -s /usr/local/hbase-1.2.6-bin $HBASE_HOME && \ | |
| @jdk | |
| @ZooKeeper | |
| @vim /etc/profile | |
| export HBASE_HOME=/usr/local/hbase | |
| export PATH=PATH:$HBASE_HOME/bin | |
| @vim hbase-env.sh | |
| export JAVA_HOME=/etc/local/jdk1.8.0_144 | |
| export HBASE_CLASSPATH=/etc/local/hbase/conf | |
| export HBASE_HOME=/etc/local/hbase | |
| export HBASE_LOG_DIR=${HBASE_HOME}/logs | |
| export HBASE_PID_DIR=/etc/local/hbase/pids | |
| export HBASE_MANAGES_ZK=false | |
| @vim hbase-site.xml | |
| <property> | |
| <name>hbase.zookeeper.property.dataDir</name> | |
| <value>/data/zkdata/data</value> | |
| </property> | |
| <property> | |
| <name>hbase.rootdir</name> | |
| <value>hdfs://hbase0:9000/hbase</value> | |
| </property> | |
| <property> | |
| <name>hbase.cluster.distributed</name> | |
| <value>true</value> | |
| </property> | |
| <property> | |
| <name>hbase.master</name> | |
| <value>hbase0:60000</value> | |
| </property> | |
| <property> | |
| <name>hbase.zookeeper.quorum</name> | |
| <value>hbase0,hbase1,hbase2</value> | |
| </property> | |
| @vim regionserver | |
| hbase1,hbase2 | |
| @vim HMaster | |
| hbase0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment