HBase pseudo distributedmode installation
Skip install vmware workstation(you can doc)
Skip install centOS (you can seedoc)
Skip install Hadoop-2.7.3 (seemy video)
install hbase in /trainingfolder
tar -zvxf /tools/hbase-1.3.1-bin.tar.gz -C /training/
Edit bash profile
vi ~/.bash_profile
(*) Add this information:
exportHBASE_HOME=/training/hbase-1.3.1
exportPATH=$HBASE_HOME/bin:$PATH
makeenvironment effects
source ~/.bash_profile
change hbase configuration files
cd/training/hbase-1.3.1/conf
edit hbase environment
vi hbase-env.sh
(*) Find and edit this information(press /and find)
exportJAVA_HOME=/training/jdk1.8.0_241
export HBASE_MANAGES_ZK=true
vi hbase-site.xml
add this information:
<property>
<name>hbase.rootdir</name>
<value>hdfs://niit01:9000/hbase</value>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>niit01</value>
</property>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
vi regionservers
add this information:
niit01 (according toyour host name)
start hbase using this:
start-all.sh
start-hbase.sh
if your hbase startssuccessfully you will see this:
check:
jps
if successful you can see this:
to start working in hbase usethis command:
hbaseshell
once you are in hbase shell youcan check with following commands:
status
list
to stop hbase:
stop-hbase.sh