core-site.xml
<?xml version="1.0" encoding="UTF-8"?>
<?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>
<!-- 指定hdfs的nameservice名稱空間為ns -->
<property>
<name>fs.defaultFS</name>
<value>hdfs://ns</value>
</property>
<!-- 指定hadoop臨時目錄,默認在/tmp/{$user}目錄下,不安全,每次開機都會被清空-->
<property>
<name>hadoop.tmp.dir</name>
<value>/usr/local/hadoop/hdpdata/</value>
<description>需要手動創建hdpdata目錄</description>
</property>
<!-- 指定zookeeper地址 -->
<property>
<name>ha.zookeeper.quorum</name>
<value>node01:2181,node02:2181,node03:2181</value>
<description>zookeeper地址,多個用逗號隔開</description>
</property>
</configuration>
轉載于:https://www.cnblogs.com/llphhl/p/8847871.html
總結
以上是生活随笔為你收集整理的core-site.xml的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux建立与删除目录
- 下一篇: css3 - 语言伪类选择器