HBase安装

官方文档:http://hbase.apache.org/docs/current/api/overview-summary.html#overview_description

 

 

1)修改打开文件句柄数

http://blog.csdn.net/luoleicn/archive/2010/07/21/5752479.aspx

 

2) make sure you configured Hadoop's conf/hdfs-site.xml with this:

<property>

  <name>dfs.datanode.max.xcievers</name>

  <value>2047</value>

</property>

 

 

3)配置

 

hbase-site.xml:

<configuration>

 

  <property>

    <name>hbase.rootdir</name>

    <value>hdfs://dawning:8020/hbase</value>

    <description>The directory shared by region servers.

    </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>

 

  <property>

      <name>hbase.zookeeper.property.clientPort</name>

      <value>22222</value>

      <description>Property from ZooKeeper's config zoo.cfg.

      The port at which the clients will connect.

      </description>

  </property>

 

  <property>

      <name>hbase.zookeeper.quorum</name>

      <value>58.155.50.240,58.155.50.228,58.155.50.224</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>

  </property>

 

  <property>

      <name>hbase.zookeeper.property.dataDir</name>

      <value>/home/morre/hbase/zookeeper</value>

      <description>Property from ZooKeeper's config zoo.cfg.

      The directory where the snapshot is stored.

      </description>

  </property>

 

 

 

</configuration>

 

HBase默认参数http://hbase.apache.org/docs/current/hbase-conf.html

 

regionservers :

morre@dawning:/opt/hbase-0.20.5$ cat conf/regionservers 

58.155.50.224

58.155.50.228

58.155.50.240

OK

 

注意

Of note, if you have made HDFS client configuration on your Hadoop cluster, HBase will not see this configuration unless you do one of the following:

 

1Add a pointer to your HADOOP_CONF_DIR to CLASSPATH in hbase-env.sh.

2Add a copy of hdfs-site.xml (or hadoop-site.xml) to ${HBASE_HOME}/conf, or

3if only a small set of HDFS client configurations, add them to hbase-site.xml.

 

 

 

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值