HA配置之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>
<!-- 把多个NameNode的地址组装成一个集群mycluster -->
<property>
<name>fs.defaultFS</name>
<value>hdfs://mycluster</value>
</property>

<!-- 指定hadoop运行时产生文件的存储目录 -->
<property>
<name>hadoop.tmp.dir</name>
<value>/opt/module/hadoop-3.1.3/data</value>
</property>

<!-- 配置HDFS网页登录使用的静态用户为rainys -->
<property>
<name>hadoop.http.staticuser.user</name>
<value>rainys</value>
</property>

<!-- 配置该rainys(superUser)允许通过代理访问的主机节点 -->
<property>
<name>hadoop.proxyuser.rainys.hosts</name>
<value>*</value>
</property>
<!-- 配置该rainys(superUser)允许通过代理用户所属组 -->
<property>
<name>hadoop.proxyuser.rainys.groups</name>
<value>*</value>
</property>
<!-- 配置该rainys(superUser)允许通过代理的用户-->
<property>
<name>hadoop.proxyuser.rainys.users</name>
<value>*</value>
</property>

<!-- 指定zkfc要连接的zkServer地址 -->
<property>
<name>ha.zookeeper.quorum</name>
<value>hadoop102:2181,hadoop105:2181,hadoop106:2181</value>
</property>
</configuration>


复制代码
posted @   Avery_rainys  阅读(70)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· winform 绘制太阳,地球,月球 运作规律
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 上周热点回顾(3.3-3.9)
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
点击右上角即可分享
微信分享提示