欢迎投稿

今日深度:

HBase安装,

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.

 

 

 

 

www.htsjk.Com true http://www.htsjk.com/hbase/41046.html NewsArticle 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 conf...
相关文章
    暂无相关文章
评论暂时关闭