Hadoop运行模式:
本地 所有程序在一个JVM中运行
伪分布 多进程运行
分布 多机器
关键配置:
本地 不需要任何配置,采用默认值
伪分布
core-site.xml fs.defaultFS hdfs://localhost/
hdfs-site.xml dfs.replication 1
yarn-site.xml yarn.resourcemanager.hostname localhost
yarn.nodemanager.aux-services mapreduce_shuffle
分布
core-site.xml fs.defaultFS hdfs://master/
hdfs-site.xml dfs.replication 3(默认值)
yarn-site.xml yarn.resourcemanager.hostname master
网友评论