As described above in http: www.linuxidc.comLinux2011-0840153.htm, building a cluster using vmware, although hadoop runs successfully, but into hbase, although using the most orthodox method, I found the official guidance for installation URL: http: hbase.eu.apache.orgbooknotsoquick.html. Follow the steps above
For example, the above http://www.linuxIdC.com/linux/2011-08/40153.htm, set upClusterAfter using vmware, although hadoop was successfully run, I found the official installation website http://hbase.eu.apache.org/book/notsoquick.htmlalthough the most orthodox method was used in hbase.
Follow the steps above to Solve the Problem step by step, but the last error occurs frequently and no solution is found.
1. bin/stop-hbase.shCommandAnd the process cannot end. Later, I checked almost all the problems on google, and found that the Hmaster was not done, so I remembered that I could use the jps command to check the process. Once I checked it, it was true that there was no Hmaster process.
2. After Entering the shell, the table creation and other operations are prompted.
ERROR: org. apache. hadoop. hbase. MasterNotRunning: Null
You can see org. apache. hadoop. hbase. master. HMaster: Unhandl in logs.Ed ExCeption. Starting shutdown
Search google and find the solution in N:
1) Confirm hbase. rootdir and hDfDoes dfs. name in s. xml always exist?
2) disable the Firewall:SuDo ufw disable
3) Add the host names in the windows Host Name: c: \ windows \ system32 \ drivers/etc. (The host names were originally found to have problems with the cywin user)
4) comment out the localhost in/etc/hosts and find it unnecessary.
5) change the version combination from hadoop20.2 to hadoop0000203.0, and change hbase from general version 90.3 to stable version.
3. The last two fatal errors are actually found.
1) users who use hadoop and hbase keep using the root user due to File Permission restrictions. The root user may cause some errors. Create a grid user for all hosts.
2) questions in this article. From VMware to visual Box, this is the key. After changing the virtual machine version, all the problems are solved, and the problem that has been plagued for half a week is actually here! (Version kills people !!!)
Creation process (refer to user 1)
Of course, java and hadoo have been built. I used three machines at last.
Namenode: 192.168.122.136 username ubn
Datanode1: 192.168.122.140 ub1
Datanode2: 192.168.122.141 ub2
Java path:/home/grid/java/jdk
Hadoop path:/home/grid/hadoop
Hbase path:/home/grid/hbase
Download hbase-0.4102.tar.gz,ExtractGo to the default directory. My Directory:/home/grid/hbase/
Decompress the package and change the file name.MvHbase0.90.3 hbase)
1. Modify conf/hbase-env.sh
ExportJAVA_HOME =/home/grid/java/jdk
Export HBASE_CLASSPATH =/home/grid/hadoop/conf
Export HBASE_MANAGES_ZK =TrUe
HBASE_MANAGES_ZK selects tru to allow the machine to manage zookeeper on its own.
2. Modify hbase-site.xml and add the following content
Hbase. rootdir
Hdfs: // ubn/hbase
Hbase. cluster. distributed
True
Where: hbase. rootdir: "hdfs: // ubn: 9000" must be consistent with fs. default. name in hadoop-config/core-site.xml;
3. Copy the/home/grid/hadoop/conf/hdfs-site.xml file to the conf folder of hbase.
4. Add all the datanode nodes in hadoop-config/conf/slaves to conf/regionservers.
5. delete/hbase/lib/hadoop-core-0.20-append-r1056497.jar
Copy/hadoophadoop-0.20.0-core.jar to/hbase-0.90.2/lib/
6. Finally, copy the configured hbase to another node s.Cp
Run
Start and close Hadoop, ZooKeeper, and HBase in sequence: Start Hadoop-> Start HBase-> stop Hadoop.
Run the bin/start-hbase.sh and bin/stop-hbase.sh scripts to start and stop HBase services.
Test, hbase shell, test:
List all tables
Create a table, such as create 'test' and 'data'
Put insert data