How to install Hbase in stand-alone mode
Editor to share with you how to install Hbase in stand-alone mode, I believe most people do not know much about it, so share this article for your reference. I hope you will learn a lot after reading this article. Let's learn about it together.
Upload hbase tool
Decompress
[hadoop@master installer] $tar xzf hbase-0.94.16-security.tar.gz
[hadoop@master installer] $ls
Eclipse-jee-indigo-SR2-linux-gtk.tar.gz hadoop-eclipse-plugin-1.2.1.zip
Hadoop-1.2.1.tar.gz hbase-0.94.16-security
Hadoop-eclipse-plugin-1.2.1 hbase-0.94.16-security.tar.gz
[hadoop@master installer] $mv hbase-0.94.16-security..
Create a soft connection
[hadoop@master] $ln-s hbase-0.94.16-security/ hbase
[hadoop@master ~] $ll
Total 40
Drwxr-xr-x 3 hadoop hadoop 4096 10-15 09:56 Desktop
Drwxrwxr-x 9 hadoop hadoop 4096 10-16 03:54 eclipse
Lrwxrwxrwx 1 hadoop hadoop 13 10-15 07:01 hadoop- > hadoop-1.2.1/
Drwxr-xr-x 16 hadoop hadoop 4096 10-15 07:35 hadoop-1.2.1
Lrwxrwxrwx 1 hadoop hadoop 23 10-24 02:03 hbase- > hbase-0.94.16-security/
Drwxr-xr-x 10 hadoop hadoop 4096 2014-01-11 hbase-0.94.16-security
Drwxrwxr-x 2 hadoop hadoop 4096 10-16 06:02 input
Drwxrwxr-x 3 hadoop hadoop 4096 10-24 02:03 installer
Drwxrwxr-x 2 hadoop hadoop 4096 10-16 06:06 program
Drwxrwxr-x 4 hadoop hadoop 4096 10-16 06:08 tmp
Drwxrwxr-x 3 hadoop hadoop 4096 10-15 09:54 workspace
Drwxrwxr-x 5 hadoop hadoop 4096 10-16 06:00 workspace2
[hadoop@master ~] $
Configure os environment variables
[hadoop@master ~] $vim .bashrc
Export JAVA_HOME=/usr/java/jdk1.6.0_27
Export HADOOP1_HOME=/home/hadoop/hadoop
Export HBASE_HOME=/home/hadoop/hbase
Export PATH=$PATH:$JAVA_HOME/bin:$HADOOP1_HOME/bin:$HBASE_HOME/bin
Export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib
Configure hbase
[hadoop@master hbase] $pwd
/ home/hadoop/hbase
[hadoop@master hbase] $cd conf
[hadoop@master conf] $pwd
/ home/hadoop/hbase/conf
[hadoop@master conf] $
[hadoop@master conf] $vim hbase-env.sh
Modify the java environment variable
Export JAVA_HOME=/usr/java/jdk1.6.0_27
Export HBASE_HEAPSIZE=50
[hadoop@master conf] $vim hbase-site.xml
Hbase.rootdir
File:///home/hadoop/hbase/data
Here we first use native, single point mode.
[hadoop@master conf] $mkdir-p / home/hadoop/hbase/data
Give effect to a document
[hadoop@master] $. .bashrc
Start hbase
[hadoop@master ~] $start-hbase.sh
Starting master, logging to / home/hadoop/hbase/logs/hbase-hadoop-master-master.out
[hadoop@master ~] $jps
5946 NameNode
2572 HMaster
6189 JobTracker
2775 Jps
6108 SecondaryNameNode
[hadoop@master ~] $
Only single point mode, so only HMaster, quickly launched successfully.
Enter shell
[hadoop@master ~] $hbase shell
HBase Shell; enter 'help' for list of supported commands.
Type "exit" >
Version 0.94.16, r1557241, Fri Jan 10 20:10:24 UTC 2014
Hbase (main): 001VR 0 > quit
Stand-alone mode is very simple.
[hadoop@master ~] $stop-hbase.sh
Stopping hbase.
The above is all the contents of the article "how to install Hbase in stand-alone mode". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!