简体   繁体   English

如何更改HADOOP日志文件的位置

[英]How to change the HADOOP log files location

I'm running a hadoop process, which take couple of hours and lots of space, and the process stops because there is not much space. 我正在运行一个hadoop进程,这需要几个小时和大量的空间,并且由于空间不足,进程停止。 The Hadoop tmp folder has huge space remaining so I think it is the problem with the Hadoop_log_files dir, as I've checked and there is not much space there. Hadoop tmp文件夹有很大的空间,所以我认为这是Hadoop_log_files目录的问题,因为我已经检查过,那里空间不大。 So could anyone please advise how to change the hadoop log file location to be in another location instead of /home/hduser/hadoop/logs without having to change the whole location of the hadoop setup. 所以任何人都可以建议如何将hadoop日志文件位置更改为在另一个位置而不是/home/hduser/hadoop/logs而不必更改hadoop设置的整个位置。 I'd be very thankful for any assistance. 我非常感谢任何帮助。

I found a property in the hadoop-env.sh : 我在hadoop-env.sh找到了一个属性:

# Where log files are stored.  $HADOOP_HOME/logs by default.
# export HADOOP_LOG_DIR=${HADOOP_HOME}/logs

I changed it to export newlocation/logs and this solved the problem :) 我改为export newlocation/logs ,这解决了问题:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM