1.hadoop的hdfs-site.xml的配置内容如下

<configuration>
        <property>
                <name>dfs.namenode.secondary.http-address</name>
                <value>node2:50090</value>
        </property>
        <property>
                <name>dfs.namenode.secondary.https-address</name>
                <value>node2:50091</value>
        </property>
</configuration>