Hadoop + MapReduce 端口自定義配置

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>

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章