大数据 hadoop全分布 配置文件配置 安装配置hadoop和jdk 配置/usr/local/src/hadoop/etc/hadoop/下的四个文件 hdfs-site.xml dfs.na
dfs.namenode.name.dir
file:/usr/local/src/hadoop/dfs/name
dfs.datanode.data.dir
file:/usr/local/src/hadoop/dfs/data
dfs.replication
3
fs.defaultFS
hdfs://192.168.150.81:9000
io.file.buffer.size
131072
、
hadoop.tmp.dir
file:/usr/local/src/hadoop/tmp
mapReduce.framework.name
yarn
mapreduce.jobhistory.address
master:10020
mapreduce.jobhistory.WEBapp.address
master:19888
yarn.resourcemanager.address
master:8032
yarn.resourcemanager.scheduler.address
master:8030
yarn.resourcemanager.resource-tracker.address
master:8031
yarn.resourcemanager.admin.address
master:8033
yarn.resourcemanager.webapp.address
master:8088
yarn.nodemanager.aux-services
mapreduce_shuffle
yarn.nodemanager.auxservices.mapreduce.shuffle.class
org.apache.hadoop.mapred.ShuffleHandler
在/usr/local/src/haddop/etc/haddop/目录下
vi masters
#添加master主机ip地址
vi slaves
#slave1主机ip
#slave2主机ip
mkdir /usr/local/src/hadoop/tmp
mkdir /usr/local/src/hadoop/dfs/name -p
mkdir /usr/local/src/hadoop/dfs/data -p
chown -R hadoop:hadoop /usr/local/src/hadoop/
scp -r /usr/local/src/hadoop/ root@slave1:/usr/local/src/scp -r /usr/local/src/hadoop/ root@slave2:/usr/local/src/
chown -R hadoop:hadoop /usr/local/src/hadoop/chown -R hadoop:hadoop /usr/local/src/hadoop/
--结束END--
本文标题: 3、环境搭建-Linux上hadoop的全分布配置
本文链接: https://lsjlt.com/news/8460.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-03-01
2024-03-01
2024-03-01
2024-03-01
2024-03-01
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0