您的位置:首页 > 运维架构

Hadoop + MapReduce 端口自定义配置

2014-01-02 13:23 281 查看
core-site.xml
<?xml-stylesheettype="text/xsl"href="configuration.xsl"?>

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

<configuration>
<property>
<name>fs.default.name</name>
<value>hdfs://localhost:9000</value>
<!-- Default Port: 9000. The URL to access HDFS -->
</property>
</configuration>

hdfs-site.xml
<?xmlversion="1.0"?>
<?xml-stylesheettype="text/xsl"href="configuration.xsl"?>

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

<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>dfs.datanode.address</name>
<value>localhost:50010</value>
<!-- Default Port: 50010. -->
</property>
<property>
<name>dfs.datanode.http.address</name>
<value>localhost:50075</value>
<!-- Default Port: 50075. -->
</property>
<property>
<name>dfs.datanode.ipc.address</name>
<value>localhost:50020</value>
<!-- Default Port: 50020. -->
</property>
<property>
<name>dfs.secondary.http.address</name>
<value>localhost:50090</value>
<!-- Default Port: 50090. -->
</property>
<property>
<name>dfs.http.address</name>
<value>localhost:50070</value>
</property>

</configuration>

mapred-site.xml
<?xmlversion="1.0"?>
<?xml-stylesheettype="text/xsl"href="configuration.xsl"?>

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

<configuration>
<property>
<name>mapred.job.tracker</name>
<value>localhost:9001</value>
<!-- Default Port: 9001. -->
</property>
<property>
<name>mapred.job.tracker.http.address</name>
<value>localhost:50030</value>
<!-- Default Port: 50030. -->
</property>
<property>
<name>mapred.task.tracker.http.address</name>
<value>localhost:50060</value>
<!-- Default Port: 50060. -->
</property>
</configuration>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: