Hive log in

Hive is divided into two in a log
1. The system log records the operation, the error condition hive.
2. Job log, recording the history of the execution of the job of the Hive.

1. System Log

System logs are stored in the area?
Hive log records storage situation in the hive / conf / hive-log4j.properties file,
the default storage conditions:

WARN = hive.root.logger, DRFA
hive.log.dir = / tmp / $ # {} the user.name default storage location
hive.log.file = hive.log # default file name

2.job log

Job logs and stored in a place?

Hive RUN Time of the Location // log Structured File
    HIVEHISTORYFILELOC ( "hive.querylog.location", "/ tmp /" + the System.getProperty ( "the user.name")),
the default directory store /tmp/{user.name} under.

In the case of default log level is DEBUG information can not be output, a variety of information such as a detailed error to occur could not see.
We can modify the following two ways log4j log level output, so that use of these debug log positioning error, Specifically, the following:
 $ = hive --hiveconf hive.root.logger the DEBUG, Console (replaced by the start command hive)

Found hive.root.logger property or $ {HIVE_HOME} /conf/hive-log4j.properties file, and modifications as provided below
hive.root.logger = DEBUG, console

Guess you like

Origin www.cnblogs.com/wqbin/p/10971212.html
log
log