Hadoop集群配置速记
core-site.xml
源代码
<configuration>
<!—指定NameNode的地址及访问端口 -->
<property>
<name>fs.defaultFS</name>
<value>hdfs://node1:8020</value>
</property>
<!-- 设置Hadoop数据的本地保存路径 -->
<property>
<name>hadoop.tmp.dir</name>
<value>/export/data/hadoop-3.3.0</value>
</property>
<!-- 设置在Web UI中访问HDFS的静态用户名 -->
<property>
<name>hadoop.http.staticuser.user</name>
<value>root</value>
</property>
<!-- 配置root(超级用户)允许通过代理访问的主机节点-->
<property>
<name>hadoop.proxyuser.root.hosts</name>
<value>*</value>
</property>
<!-- 配置root(超级用户)允许通过代理用户所属组 -->
<property>
<name>hadoop.proxyuser.root.groups</name>
<value>*</value>
</property>
<!-- 文件系统垃圾桶保存时间 -->
<property>
<name>fs.trash.interval</name>
<value>1440</value>
</property>
</configuration>
配置原则
属性为一个单元 属性里面包字段名,字段名后跟键值,键值字段名都在属性中
属性叫property,字段名叫name,键值叫value
字段拆分
指定NameNode的地址及访问端口:
字段名: fs.defaultFS
键值: hdfs://node1:8020
协议为HDFS
指定Hadoop的临时文件路径:
字段名: hadoop.tmp.dir
键值: /export/data/hadoop-3.3.0
设置在Web UI中访问HDFS的静态用户名:
字段名: hadoop.http.staticuser.user
键值: root
配置root(超级用户)允许通过代理访问的主机节点:
字段名: hadoop.proxyuser.root.hosts
键值: *
允许所有
配置root(超级用户)允许通过代理用户所属组:
字段名: hadoop.proxyuser.root.groups
键值: *
文件系统垃圾桶保存时间:
字段名: fs.trash.interval
键值: 1440
It's neaarly impossibe tto find knowledgeable people iin this
pareticular subject, however, yyou sem like you know wbat you're talkoing
about! Thanks
Great sie you havee here.. It's hadd to find high-quality
writing like yours these days. I realy appreciate individuals lkke you!
Taake care!!
I have read a few just right stuff here. Definitely worth bookmarking ffor revisiting.
I woner how a lot attempt youu place tto mke any suc magnificent infirmative web site.
理论深度可再挖掘,以提升文章厚重感。
作者的情感表达细腻入微,让人在阅读中找到了心灵的慰藉。