In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "hbase table structure and installation and deployment process". In daily operation, I believe many people have doubts about hbase table structure and installation and deployment process. The editor consulted all kinds of information and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "hbase table structure and installation and deployment process". Next, please follow the editor to study!
Hbase table structure and installation and deployment
You only need to specify the table name and column family when creating a table
Each row is a record, the number of fields in each row is arbitrary, and each field should be specified for storage.
Field name and field value. When querying a field, you need to specify the coordinates: table name-row key-column family
Field name clolumn family field
[root@hadoop04 Desktop] # tar-zxvf hbase-0.96.2-hadoop2-bin.tar.gz-C.. / app
[root@hadoop04 Desktop] # cd.. / app
[root@hadoop04 app] # cd hbase-0.96.2-hadoop2
[root@hadoop04 hbase-0.96.2-hadoop2] # ls
Bin conf hbase-webapps LICENSE.txt README.txt
CHANGES.txt docs lib NOTICE.txt
[root@hadoop04 hbase-0.96.2-hadoop2] # cd conf
[root@hadoop04 conf] # ls
Hadoop-metrics2-hbase.properties hbase-policy.xml regionservers
Hbase-env.cmd hbase-site.xml
Hbase-env.sh log4j.properties
[root@hadoop04 conf] # echo $JAVA_HOME
/ usr/lib/java/java-7-sun
[root@hadoop04 conf] # vi hbase-env.sh
Export JAVA_HOME=/usr/lib/java/java-7-sun
Export HBASE_MANAGES_ZK=false specifies an external zk
[root@hadoop04 conf] # vi hbase-site.xml
Hbase.rootdir
Hdfs://ns1/hbase
Hbase.cluster.distributed
True
Hbase.zookeeper.quorum
Hadoop01:2181,hadoop02:2181,hadoop03:2181
[root@hadoop04 conf] # vi regionservers
Hadoop01
Hadoop02
Hadoop03
Pay attention to putting the hdfs-site.xml,core-site.xml of hadoop under hbase/conf
[root@hadoop04 conf] # cp / home/hadoop/hadoop-2.6.0/etc/hadoop/ {core-site.xml,hdfs-site.xml}. /
[root@hadoop05 ~] # mkdir / root/app
[root@hadoop01 ~] # mkdir / root/app
[root@hadoop02 ~] # mkdir / root/app
[root@hadoop03 ~] # mkdir / root/app
[root@hadoop04 app] # scp-r hbase-0.96.2-hadoop2/ hadoop05:/root/app
[root@hadoop04 app] # scp-r hbase-0.96.2-hadoop2/ hadoop01:/root/app
[root@hadoop04 app] # scp-r hbase-0.96.2-hadoop2/ hadoop02:/root/app
[root@hadoop04 app] # scp-r hbase-0.96.2-hadoop2/ hadoop03:/root/app
[root@hadoop04 app] # hdfs dfsadmin report
[root@hadoop04 app] # cd hbase-0.96.2-hadoop2
[root@hadoop04 hbase-0.96.2-hadoop2] # cd bin
[root@hadoop04 bin] #. / start-hbase.sh
Starting master, logging to / root/app/hbase-0.96.2-hadoop2/bin/../logs/hbase-root-master-hadoop04.out
Hadoop03: starting regionserver, logging to / root/app/hbase-0.96.2-hadoop2/bin/../logs/hbase-root-regionserver-hadoop03.out
Hadoop02: starting regionserver, logging to / root/app/hbase-0.96.2-hadoop2/bin/../logs/hbase-root-regionserver-hadoop02.out
Hadoop01: starting regionserver, logging to / root/app/hbase-0.96.2-hadoop2/bin/../logs/hbase-root-regionserver-hadoop01.out
[root@hadoop04 bin] # jps
16023 Jps
25023 DFSZKFailoverController
24498 NameNode
15805 HMaster
[root@hadoop01 app] # jps
15125 DataNode
19939 HRegionServer
20100 Jps
15243 NodeManager
4649 QuorumPeerMain
4822 JournalNode
[root@hadoop04 bin] #. / hbase shell
2016-01-16 18 Configuration.deprecation 51 Configuration.deprecation 14061 INFO [main] hadoop.native.lib is deprecated. Instead, use io.native.lib.available
HBase Shell; enter 'help' for list of supported commands.
Type "exit" to leave the HBase Shell
Version 0.96.2-hadoop2, r1581096, Mon Mar 24 16:03:18 PDT 2014
Hbase (main): 001purl 0 >
Hbase (main): 013pur0 > help
Start all hbase
Start zk separately
. / zkServer.sh start
Start the hbase cluster
Start-dfs.sh
Start hbase and run on the primary node
Start-hbase.sh
Access the hbase management page through a browser
Hadoop04:60010
To ensure the reliability of the cluster, start multiple hmaster
Hbase-daemon.sh start master
At this point, the study on the "hbase table structure and installation and deployment process" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.