以下是一些Hadoop在Debian上的配置技巧:
/usr/local/hadoop。/etc/profile或~/.bashrc文件,添加HADOOP_HOME和PATH变量,使配置生效。core-site.xml:设置fs.defaultFS为hdfs://namenode:9000,指定临时目录hadoop.tmp.dir。hdfs-site.xml:配置副本数dfs.replication,指定NameNode和DataNode的存储目录。mapred-site.xml:设置mapreduce.framework.name为yarn。yarn-site.xml:配置ResourceManager主机名,设置yarn.nodemanager.aux - services为mapreduce_shuffle等。slaves文件列出DataNode和NodeManager节点,编辑hadoop - env.sh设置JAVA_HOME等环境变量。