Kontext Copilot - An AI-powered assistant for data analytics that runs on your local computer. Learn more
Get started
Hadoop Daemon Log Files Location
insights Stats
warning Please login first to view stats information.
Raymond
Hadoop, Hive & HBase
Articles about Apache Hadoop, Hive and HBase installation, performance tuning and general tutorials.
*The yellow elephant logo is a registered trademark of Apache Hadoop.
About Hadoop daemon services
To start a Hadoop service, we use scripts under sbin folder of Hadoop home folder.
For example, the following two commands start Hadoop HDFS services (namenode and datanode) on Windows and UNIX-alike systems respectively.
%HADOOP_HOME%\sbin\start-dfs.cmd
%HADOOP_HOME%\sbin\start-dfs.sh
Sometimes, these daemon services may fail to start. To investigate the root cause, we need to look into log folder.
HADOOP_LOG_DIR
This environment variable is used for Hadoop log directory.
By default the values are:
- Windows:
@rem Where log files are stored. %HADOOP_HOME%/logs by default.
@rem set HADOOP_LOG_DIR=%HADOOP_LOG_DIR%\%USERNAME%The logs are located in folder %HADOOP_HOME%/logs.
- Linux:
# Where (primarily) daemon log files are stored. # ${HADOOP_HOME}/logs by default. # Java property: hadoop.log.dir # export HADOOP_LOG_DIR=${HADOOP_HOME}/logs
The logs are located in folder ${HADOOP_HOME}/logs.
copyright
This page is subject to Site terms.
comment Comments
No comments yet.