Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 hadoop-env.sh 中设置内存?
# Extra Java runtime options # export HADOOP_OPTS=-server
如果我想设置NN:20G DN:4G,我该怎么办?
您可以将它们设置在hadoop-env.sh.
hadoop-env.sh
export HADOOP_NAMENODE_OPTS="-Xmx20G ... " export HADOOP_DATANODE_OPTS="-Xmx4G ... "