[
https://issues.apache.org/jira/browse/HIVE-12497?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Prasanth Jayachandran updated HIVE-12497:
-----------------------------------------
Attachment: HIVE-12497.2.patch
There will be 3 instances of
"ERROR StatusLogger No log4j2 configuration file found. Using default
configuration: logging only errors to the console." when launching hive cli
1) hadoop version
2) hbase mapredcp
3) hadoop jars
This patch redirects the std err msgs from 1 & 2 as we don't really need them.
1 and 2 writes the required information to std out. We cannot remove 3 as hive
sends most of the output to stderr (only query output goes to stdout).
> Remove HADOOP_CLIENT_OPTS from hive script
> ------------------------------------------
>
> Key: HIVE-12497
> URL: https://issues.apache.org/jira/browse/HIVE-12497
> Project: Hive
> Issue Type: Sub-task
> Components: Logging
> Affects Versions: 2.0.0
> Reporter: Prasanth Jayachandran
> Assignee: Prasanth Jayachandran
> Fix For: 2.0.0
>
> Attachments: HIVE-12497.1.patch, HIVE-12497.2.patch
>
>
> HADOOP_CLIENT_OPTS added in HIVE-11304 to get around log4j error adds ~5
> seconds delay to hive startup.
> {code:title=with HADOOP_CLIENT_OPTS}
> time hive --version
> real 0m11.948s
> user 0m13.026s
> sys 0m3.979s
> {code}
> {code:title=without HADOOP_CLIENT_OPTS}
> time hive --version
> real 0m7.053s
> user 0m7.254s
> sys 0m3.589s
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)