标签: configuration hadoop
如何在hadoop-env.sh中设置内存?
# Extra Java runtime options # export HADOOP_OPTS=-server
如果我想设置NN:20G DN:4G,我该怎么办?
答案 0 :(得分:2)
您可以在hadoop-env.sh。
hadoop-env.sh
export HADOOP_NAMENODE_OPTS="-Xmx20G ... " export HADOOP_DATANODE_OPTS="-Xmx4G ... "