当前位置: 首页 > news >正文

core-site.xml,yarn-site.xml,hdfs-site.xml,mapred-site.xml配置

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 athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed 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 andlimitations under the License. See accompanying LICENSE file.
--><!-- Put site-specific property overrides in this file. --><configuration>
<property><name>fs.defaultFS</name><value>hdfs://node02:9820</value>
</property>
<property><name>hadoop.tmp.dir</name><value>/opt/module/hadoop-3.3.3/data</value>
</property>
<!--配置hdfs网页登录使用的静态用户为bigdata-->

yarn-site.xml

<?xml version="1.0"?>
<!--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 athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed 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 andlimitations under the License. See accompanying LICENSE file.
-->
<configuration>
<!-- 指定MR走shuffle-->
<property><name>yarn.nodemanager.aux-services</name><value>mapreduce_shuffle</value>
</property>
<!--指定ResourceManager的地址-->
<property><name>yarn.resourcemanager.hostname</name><value>node03</value>
</property>
<!--环境变量的继承-->
<property><name>yarn.nodemanager.env-whitelist</name><value>JAVA_HOME,HADOOP_COMMON_HOME,HADOOP_HDFS_HOME,HADOOP_CONF_DIR,CLASSPATH_PREPEND_DISTCACHE,HADOOP_YARN_HOME,HADOOP_MAPRED_HOME</value>
</property>
<!--yarn容器允许分配的最大最小内存-->
<property><name>yarn.scheduler.minimum-allocation-mb</name><value>512</value>
</property>
<property><name>yarn.scheduler.maxmum-allocation-mb</name><value>4096</value>
</property>
<!--yarn容器允许管理的物理内存大小-->
<property><name>yarn.nodemanager.resource.memory-mb</name><value>4096</value>
</property>
<!--关闭yarn对物理内存和虚拟内存的限制检查-->
<property><name>yarn.nodemanager.pmem-check-enabled</name><value>false</value>
</property>
<property><name>yarn.nodemanager.vmem-check-enabled</name><value>false</value>
</property></configuration>

 

hdfs-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 athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed 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 andlimitations under the License. See accompanying LICENSE file.
--><!-- Put site-specific property overrides in this file. --><configuration>
<property><name>dfs.namenode.name.http-address</name><value>node02:9870</value>
</property>
<property><name>dfs.namenode.secondary.http-address</name><value>node04:9868</value>
</property>
</configuration>

 

mapred-site.xml

<?xml version="1.0"?>
<?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 athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed 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 andlimitations under the License. See accompanying LICENSE file.
--><!-- Put site-specific property overrides in this file. --><configuration>
<property><name>mapreduce.framework.name</name><value>yarn</value>
</property>
</configuration>

http://www.lryc.cn/news/226691.html

相关文章:

  • 数据分析实战 | KNN算法——病例自动诊断分析
  • JS实现数据结构与算法
  • 计算机毕业设计 基于SpringBoot的驾校管理系统的设计与实现 Java实战项目 附源码+文档+视频讲解
  • S7-1200PLC和SMART PLC开放式以太网通信(UDP双向通信)
  • 作用域插槽slot-scope
  • Redis学习笔记13:基于spring data redis及lua脚本list列表实现环形结构案例
  • c# 将excel导入 sqlite
  • KafkaConsumer 消费逻辑
  • scss 实用教程
  • NO.304 二维区域和检索 - 矩阵不可变
  • 牛客---简单密码python
  • devops完整搭建教程(gitlab、jenkins、harbor、docker)
  • 页面上时间显示为数字 后端返回给前端 response java系统
  • idea怎么配置tomcat
  • GoLong的学习之路(二十三)进阶,语法之并发(go最重要的特点)(锁,sync包,原子操作)
  • asp.net core 生命周期
  • Leetcode刷题详解—— 目标和
  • 学习c#的第六天
  • 第七章 :Spring Boot web开发常用注解(二)
  • IOC - Google Guice
  • 国际阿里云:Linux实例负载高问题排查和异常处理!!!
  • 【数据结构】二叉树的遍历递归算法详解
  • 百度王颖:百度文库以AI创作能力突破语言边界,促进思想碰撞和文化融通
  • 人工智能基础_机器学习023_理解套索回归_认识L1正则---人工智能工作笔记0063
  • Learning an Animatable Detailed 3D Face Model from In-The-Wild Images论文笔记
  • Lenovo联想小新Air-14笔记本2021款AMD锐龙ALC版(82LM)原装出厂Win10镜像和Windows11预装OEM系统
  • 在程序中链接静态库
  • TortoiseSVN 状态图标不显示的两种解决办法
  • NSSCTF-Crypto入门题 练习记录贴 ‘‘一‘‘
  • Day03:注意事项、this关键字、构造器、JavaBean、String、ArrayList