hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "yumi (JIRA)" <>
Subject [jira] [Commented] (HIVE-13032) Hive services need HADOOP_CLIENT_OPTS for proper log4j2 initialization
Date Mon, 14 Mar 2016 04:31:33 GMT


yumi commented on HIVE-13032:

Can I know how do I apply/install this patch into my Hive in Ubuntu 12.04? Thank you.

> 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, 2.1.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