Created
March 8, 2018 03:33
-
-
Save HGladiator/629568faa94614cfe2409181c44a5a06 to your computer and use it in GitHub Desktop.
Revisions
-
HGladiator created this gist
Mar 8, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,47 @@ 当前安装的版本: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