hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman Shaposhnik (JIRA)" <>
Subject [jira] [Commented] (HIVE-2757) hive can't find hadoop executor scripts without HADOOP_HOME set
Date Wed, 25 Apr 2012 18:42:18 GMT


Roman Shaposhnik commented on HIVE-2757:

@Carl, bin/hive shell script calling bin/hadoop is a bit of an orthogonal issue here I think.
The basic problem I'm trying to address in this JIRA is this: hive has at least 2 entry points
Bigtop cares about for integration purposes:
  # bin/hive
  # org.apache.hadoop.hive.cli.CliDriver

Regardless of which one is used, though, hive Java code will end up exec'ing hadoop launcher
script when it comes to job submission. The reason I'm brining up the 2 is simple: given that
#2 exists and is used by things like Oozie we can't rely on shell-level computation of environment
(like finding the hadoop executable and passing that to java code via a property, etc.). 

What this JIRA is trying to accomplish is to push the logic of finding hadoop executable script
(if none is given) back to the java code, since because of #2 it is the only place where it
can be done reliably. 

Makes sense?
> hive can't find hadoop executor scripts without HADOOP_HOME set
> ---------------------------------------------------------------
>                 Key: HIVE-2757
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 0.8.0
>            Reporter: Roman Shaposhnik
>         Attachments: HIVE-2757.patch.txt
> The trouble is that in Hadoop 0.23 HADOOP_HOME has been deprecated. I think it would
be really nice if bin/hive can be modified to capture the which hadoop
> and pass that as a property into the JVM.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message