[2011-09-20] HBase configuration
http://hbase.apache.org/book/hadoop.html
2.3.Hadoop
还得自己buildHadoop,不然会因为缺少adurablesync而丢失数据,真贱……
暂时没管
2.3.1.HadoopSecurity
2.3.2.dfs.datanode.max.xcievers
暂时没管
http://hbase.apache.org/book/standalone_dist.html
2.4.HBaserunmodes:StandaloneandDistributed
2.4.1.StandaloneHBase
没用到
2.4.2.Distributed
2.4.2.1.Pseudo-distributed
没用到
2.4.2.2.Fully-distributed
需要指定NameNode和hbase.cluster.distributed=true
<configuration>
...
<property>
<name>hbase.rootdir</name>
<value>hdfs://namenode.example.org:54310/hbase</value>
<description>The directory shared by RegionServers.
</description>
</property>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
<description>The mode the cluster will be in. Possible values are
false: standalone and pseudo-distributed setups with managed Zookeeper
true: fully-distributed with unmanaged Zookeeper Quorum (see hbase-env.sh)
</description>
</property>
...
</configuration>2.4.2.2.1.regionservers
设置conf/regionservers添加regionservers
2.4.2.2.2.ZooKeeperandHBase
设置hbase-site.xml添加
<property>
<name>hbase.zookeeper.quorum</name>
<value>rs1.example.com,rs2.example.com,rs3.example.com,rs4.example.com,rs5.example.com</value>
<description>Comma separated list of servers in the ZooKeeper Quorum.
For example, "host1.mydomain.com,host2.mydomain.com,host3.mydomain.com".
By default this is set to localhost for local and pseudo-distributed modes
of operation. For a fully-distributed setup, this should be set to a full
list of ZooKeeper quorum servers. If HBASE_MANAGES_ZK is set in hbase-env.sh
this is the list of servers which we will start/stop ZooKeeper on.
</description>2.4.2.2.3.HDFSClientConfiguration
编辑hbase-env.sh添加
export HBASE_CLASSPATH = /home/michael/lib/hadoop-0.20.203.0/conf export JAVA_HOME=/home/michael/lib/jdk1.6.0_27
2.4.3.RunningandConfirmingYourInstallation
运行bin/start-hbase.sh启动hbase
相关推荐
晨曦之星 2020-08-14
lwb 2020-07-26
eternityzzy 2020-07-19
大而话之BigData 2020-06-16
ITwangnengjie 2020-06-14
gengwx00 2020-06-11
大而话之BigData 2020-06-10
鲸鱼写程序 2020-06-08
needyit 2020-06-04
strongyoung 2020-06-04
WeiHHH 2020-05-30
ITwangnengjie 2020-05-09
gengwx00 2020-05-08
gengwx00 2020-05-09
大而话之BigData 2020-05-06
Buerzhu 2020-05-01
gengwx00 2020-04-30