HDFS HA 的 core-site.xml

<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License. See accompanying LICENSE file.
-->

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

<configuration>
    <!--设置NameNode的主机和端口--> 
    <property> 
        <name>fs.defaultFS</name> 
        <value>hdfs://ns1</value> 
    </property> 
	
    <!--设置临时文件的存储目录--> 
    <property> 
        <name>hadoop.tmp.dir</name> 
        <value>/opt/app/hadoop-2.8.0/data/tmp</value> 
     </property>
	 
	 <!--配置ZK的主机和端口号-->
	  <property>
	   <name>ha.zookeeper.quorum</name>
	   <value>hostname-ubuntu.cenzhongman.com:2181,hostname-ubuntu2.cenzhongman.com:2181,hostname-ubuntu3.cenzhongman.com:2181</value>
	 </property>
</configuration>
posted @ 2017-07-09 23:50  岑忠满  阅读(318)  评论(0编辑  收藏  举报