hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesus Camacho Rodriguez (JIRA)" <>
Subject [jira] [Updated] (HIVE-13032) Hive services need HADOOP_CLIENT_OPTS for proper log4j2 initialization
Date Thu, 02 Jun 2016 10:14:59 GMT


Jesus Camacho Rodriguez updated HIVE-13032:
    Fix Version/s:     (was: 2.1.0)

> Hive services need HADOOP_CLIENT_OPTS for proper log4j2 initialization
> ----------------------------------------------------------------------
>                 Key: HIVE-13032
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 2.0.0, 2.1.0
>            Reporter: Prasanth Jayachandran
>            Assignee: Prasanth Jayachandran
>            Priority: Blocker
>             Fix For: 2.0.0
>         Attachments: HIVE-13032.1.patch, HIVE-13032.2.patch
> HIVE-12497 removed HADOOP_CLIENT_OPTS as it slowed down cli launch time. But it leads
to log4j2 not being initialized when using services other than CLI. Other services like metastore,
schematool etc. rely on log4j to initialize the logging based on the presence of
file in the classpath. If we use the standard name for log4j configuration file (
then automatic initialization will happen. If not, we have to tell log4j to look for specific
properties file. This is done via -Dlog4j.configurationFile system property. If we pass this
system property via HADOOP_CLIENT_OPTS then all hive services will have logging initialized
> In HIVE-12497, the problem was we had HADOOP_CLIENT_OPTS at the top of the script. As
a result, hadoop and hbase commands tries to initialize logging which took long time slowing
down the startup time.

This message was sent by Atlassian JIRA

View raw message