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

使用EHM图形化安装、配置、监控Hadoop集群

[日期:2013-05-12] 来源:51cto  作者:hongxincaizi [字体: ]

8、编辑配置文件并推送

备注:创建配置文件时,只写文件名称即可。不用写绝对路径,否则会报错

1、“配置管理”| Hadoop配置管理”

wps_clip_image-9847

2、“全局配置”| “添加全局配置”

wps_clip_image-8668

3、配置core-site.xml文件

wps_clip_image-1662

4、附core-site.xml文件内容

<?xml version="1.0"?>

<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<!-- Put site-specific property overrides in this file. -->

<configuration>

<!-- global properties -->

<property>

<name>hadoop.tmp.dir</name>

<value>/usr/hadoop/tmp</value>

</property>

<!-- file system properties -->

<property>

<name>fs.default.name</name>

<value>hdfs://easy-master:9000</value>

</property>

 

</configuration>

5、创建hdfs-site.xml

wps_clip_image-19222

6、附hdfs-site.xml文件内容

<?xml version="1.0"?>

<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<!-- Put site-specific property overrides in this file. -->

<configuration>

<property>

<name>dfs.replication</name>

<value>1</value>

</property>

 

</configuration>

备注:参数值表示集群中的数据的冗余次数,必须不小于datanode的节点个数。

7、创建mapred-site.xml文件

wps_clip_image-262

8、附mapred-site.xml文件内容

<?xml version="1.0"?>

<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<!-- Put site-specific property overrides in this file. -->

<configuration>

<property>

<name>mapred.job.tracker</name>

<value>easy-master:9001</value>

</property>

 

</configuration>

9、“全局配置” | “推送通用配置”

10、“提交”

wps_clip_image-18679

11、推送配置文件完成 | “关闭”

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

       

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