What is the default location of Hadoop log files & how can I change that location?

0 votes

Once I start the Hadoop daemons using start-all.sh command, I am not getting the Secondary NameNode when I execute jps command. I need to check the log files to know the error. Can anyone tell me where is the default location of log files? Also, how can I change the location of the log file?

May 4, 2018 in Big Data Hadoop by nitinrawat895
• 9,410 points
2,558 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

The default directory of Hadoop log file is $HADOOP_HOME/logs (i.e. log directory in Hadoop home directory).

The hadoop-env.sh file in Hadoop configuration directory (i.e. $HADOOP_HOME/etc/hadoop/hadoop-env.sh) contains the following property:

# export HADOOP_LOG_DIR=${HADOOP_HOME}/logs

Uncomment this line and add the location of your choice.

answered May 4, 2018 by Shubham
• 12,790 points

Related Questions In Big Data Hadoop

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

What is the meaning of Write Ahead Log in Hadoop?

Write Ahead Log (WAL) is a file ...READ MORE

answered Nov 20, 2018 in Big Data Hadoop by Sunil
61 views
0 votes
1 answer

Is it possible to change the default location of a managed table?

Hi, Yes, you can do it by using ...READ MORE

answered 23 hours ago in Big Data Hadoop by Gitika
• 14,710 points
9 views
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 9,410 points
1,843 views
0 votes
10 answers

hadoop fs -put command?

copy command can be used to copy files ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Sujay
9,122 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,260 points
655 views
0 votes
1 answer
0 votes
10 answers
0 votes
13 answers

What is the difference between Hadoop/HDFS & HBase?

HDFS is a distributed file system whereas ...READ MORE

answered Apr 26 in Big Data Hadoop by Arihar
• 160 points
5,207 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.