Hadoop + MapReduce 端口自定义配置

查看端口占用:

netstat –apn | grep 8080

core-site.xml

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



<configuration>
    <property>
        <name>hadoop.tmp.dirname>
        <value>/home/xchen_p/tmpvalue>
    property>
    <property>
        <name>fs.default.namename>
        <value>hdfs://localhost:9000value>
                
    property>
configuration>

hdfs-site.xml

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



<configuration>
    <property>
        <name>dfs.replicationname>
        <value>1value>
    property>
    <property>
            <name>dfs.datanode.addressname>
            <value>0.0.0.0:50010value>
               
    property>
    <property>
            <name>dfs.datanode.http.addressname>
            <value>0.0.0.0:50075value>
               
    property>
    <property>
            <name>dfs.datanode.ipc.addressname>
            <value>0.0.0.0:50020value>
               
    property>
    <property>
            <name>dfs.secondary.http.addressname>
            <value>0.0.0.0:50090value>
               
    property>
configuration>

mapred-site.xml

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



<configuration>
    <property>
        <name>mapred.job.trackername>
        <value>localhost:9001value>
                
    property>
    <property>
            <name>mapred.job.tracker.http.addressname>
            <value>0.0.0.0:50030value>
                
    property>

    <property>
        <name>mapred.task.tracker.http.addressname>
        <value>0.0.0.0:50060value>
                
    property>
configuration>

你可能感兴趣的:(java,大数据与云计算)