手机版
你好,游客 登录 注册
背景:
阅读新闻

HBase安装及程序调试的一些问题

[日期:2012-08-09] 来源:Linux社区  作者:freelongren [字体:大 中 小]

目前测试下来,稳定并兼容的版本是Hadoop0.20.2+hbase0.90.5

安装过程:
    首先在各节点安装hadoop0.20.2。
    hadoop-site.xml
        <configuration>
<property>
  <name>dfs.replication</name>
  <value>2</value>
  <description>Default block replication.
  The actual number of replications can be specified when the file is created.
  The default is used if replication is not specified in create time.
  </description>
</property>

<property>
 <name>dfs.support.append</name>
 <value>true</value>
</property>

<property>
 <name>dfs.datanode.max.xcievers</name>
 <value>4096</value>
 <value></value>
</property>

</configuration>

mapred-site.xml
<configuration>
<property>
  <name>mapred.job.tracker</name>
  <value>xxxxxx.xxx.22154311</value>
  <description>The host and port that the MapReduce job tracker runs
  at.  If "local", then jobs are run in-process as a single map
  and reduce task.
  </description>
</property>

<property>
  <name>mapred.map.tasks</name>
  <value>20</value>
  <description>The host and port that the MapReduce job tracker runs
  at.  If "local", then jobs are run in-process as a single map
  and reduce task.
  </description>
</property>

<property>
  <name>mapred.reduce.tasks</name>
  <value>6</value>
  <description>The host and port that the MapReduce job tracker runs
  at.  If "local", then jobs are run in-process as a single map
  and reduce task.
  </description>
</property>


</configuration>

hdfs-site.xml
<configuration>
<property>
  <name>dfs.replication</name>
  <value>2</value>
  <description>Default block replication.
  The actual number of replications can be specified when the file is created.
  The default is used if replication is not specified in create time.
  </description>
</property>

<property>
 <name>dfs.support.append</name>
 <value>true</value>
</property>

<property>
 <name>dfs.datanode.max.xcievers</name>
 <value>4096</value>
 <value></value>
</property>

</configuration>

core-site.xml
<configuration>
<property>
  <name>hadoop.tmp.dir</name>
  <value>/data/hadoop/tmp</value>
  <description>A base for other temporary directories.</description>
</property>

<property>
  <name>fs.default.name</name>
  <value>hdfs://xxx.xxxxxx.221:54310</value>
  <description>The name of the default file system.  A URI whose
  scheme and authority determine the FileSystem implementation.  The
  uri's scheme determines the config property (fs.SCHEME.impl) naming
  the FileSystem implementation class.  The uri's authority is used to
  determine the host, port, etc. for a filesystem.</description>
</property>
</configuration>

安装好hadoop0.20.2之后,安装zookeeper3.3.2,按xxx.xxx.xxx.221上zookeeper中conf/zoo.cfg文件配置方式配置,配置成功,拷贝其他几台节点,注意建立起myid

linux
相关资讯       Hbase  Hbase安装 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款