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
• 10,950 points
11,997 views

1 answer to this question.

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
• 13,450 points

Related Questions In Big Data Hadoop

0 votes
1 answer

I have to ingest in hadoop cluster large number of files for testing , what is the best way to do it?

Hi@sonali, It depends on what kind of testing ...READ MORE

answered Jul 7 in Big Data Hadoop by MD
• 79,930 points
192 views
0 votes
2 answers
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
454 views
+1 vote
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
• 10,950 points
6,361 views
+1 vote
11 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyF ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
41,935 views
–1 vote
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,320 points
2,379 views
0 votes
1 answer
0 votes
11 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, 2019 in Big Data Hadoop by Arihar
• 160 points
21,556 views