Hadoop集群搭建配置参考
来源于尚硅谷hadoop教程,具体请参考视频,此处只做备份留存
尚硅谷大数据Hadoop教程(Hadoop 3.x安装搭建到集群调优)_哔哩哔哩_bilibili
1.关于NameNode:
文件:core-site.xml
-
-
-
<!--
-
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://你的IP:你的端口号</value>
-
</property>
-
<!-- 指定 hadoop 数据的存储目录 -->
-
<property>
-
<name>hadoop.tmp.dir</name>
-
<value>/opt/module/hadoop-3.1.3/data</value>
-
</property>
-
</configuration>
2.关于HDFS
文件:hdfs-site.xml
-
-
-
<!--
-
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>
-
<property>
-
<name>dfs.namenode.http-address</name>
-
<value>hadoop102:9870</value>
-
</property>
-
<!-- 2nn web 端访问地址-->
-
<property>
-
<name>dfs.namenode.secondary.http-address</name>
-
<value>你的IP:你的端口号</value>
-
</property>
-
-
</configuration>
3.关于Yarn
文件:yarn-site.xml
-
-
<!--
-
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.
-
-->
-
<configuration>
-
-
<!-- Site specific YARN configuration properties -->
-
<!-- 指定 MR 走 shuffle -->
-
<property>
-
<name>yarn.nodemanager.aux-services</name>
-
<value>mapreduce_shuffle</value>
-
</property>
-
<!-- 指定 ResourceManager 的地址-->
-
<property>
-
<name>yarn.resourcemanager.hostname</name>
-
<value>你的地址</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>
-
-
</configuration>
4.关于配置文件mapres-site.xml
-
-
-
<!--
-
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>
-
-
<!-- 指定 MapReduce 程序运行在 Yarn 上 -->
-
<property>
-
<name>mapreduce.framework.name</name>
-
<value>yarn</value>
-
</property>
-
</configuration>
这篇好文章是转载于:学新通技术网
- 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
- 本站站名: 学新通技术网
- 本文地址: /boutique/detail/tanhfhbgjc
系列文章
更多
-
photoshop保存的图片太大微信发不了怎么办
PHP中文网 06-15 -
《学习通》视频自动暂停处理方法
HelloWorld317 07-05 -
Android 11 保存文件到外部存储,并分享文件
Luke 10-12 -
word里面弄一个表格后上面的标题会跑到下面怎么办
PHP中文网 06-20 -
photoshop扩展功能面板显示灰色怎么办
PHP中文网 06-14 -
微信公众号没有声音提示怎么办
PHP中文网 03-31 -
excel下划线不显示怎么办
PHP中文网 06-23 -
excel打印预览压线压字怎么办
PHP中文网 06-22 -
怎样阻止微信小程序自动打开
PHP中文网 06-13 -
TikTok加速器哪个好免费的TK加速器推荐
TK小达人 10-01