[英]How to edit where Hadoop store log files?
I need to edit the logs directory (contains application_* files) for hadoop. 我需要编辑hadoop的logs目录(包含application_ *文件)。 Currently they are at : /home/hadoop/hadoop-3.2.0/logs/userlogs/
目前位于: /home/hadoop/hadoop-3.2.0/logs/userlogs/
HADOOP_LOG_DIR
is the property which can be configured to change the location of logs generated by Hadoop. HADOOP_LOG_DIR
是可以配置为更改Hadoop生成的日志位置的属性。 You can find the same in your hadoop-env.sh
file. 您可以在hadoop-env.sh
文件中找到相同的内容。
You can find the hadoop-env.sh file in the $HADOOP_HOME/etc/hadoop
location. 您可以在$HADOOP_HOME/etc/hadoop
位置找到hadoop-env.sh文件。
echo $HADOOP_HOME
cd /path/to/hadoop_home/etc
vi hadoop-env.sh
Enter the value/path against the property HADOOP_LOG_DIR
and it should be done. 输入属性HADOOP_LOG_DIR
的值/路径,应该完成。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.