Monday, 14 August 2017

New_3)Hive Logging information

3)Hive Logging information:

  • Hive uses log4j for logging. These logs are not emitted to the standard output by default but are
  • instead captured to a log file specified by Hive's log4j properties file. 
  • By default Hive will use hive-log4j.default in the conf/ directory of the Hive installation which writes out logs to /tmp/<userid>/hive.log and uses the WARN level.
  • It is often desirable to emit the logs to the standard output and/or change the logging level for debugging purposes. 

These can be done from the command line as follows:

$HIVE_HOME/bin/hive --hiveconf hive.root.logger=INFO,console

Log Directory:

Property hive.log.dir= <Directy_path>

Logging options:

Property hive.root.logger=INFO,console

No comments:

Post a Comment

Fundamentals of Python programming

Fundamentals of Python programming: Following below are the fundamental constructs of Python programming: Python Data types Python...