You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Thejas M Nair (JIRA)" <ji...@apache.org> on 2013/10/07 04:24:52 UTC

[jira] [Updated] (HIVE-5092) Fix hiveserver2 mapreduce local job on Windows

     [ https://issues.apache.org/jira/browse/HIVE-5092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thejas M Nair updated HIVE-5092:
--------------------------------

    Fix Version/s:     (was: 0.12.0)

Preparing for 0.12 release. Removing fix version of 0.12 for those that are not in 0.12 branch.


> Fix hiveserver2 mapreduce local job on Windows
> ----------------------------------------------
>
>                 Key: HIVE-5092
>                 URL: https://issues.apache.org/jira/browse/HIVE-5092
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2, Windows
>            Reporter: Daniel Dai
>            Assignee: Daniel Dai
>         Attachments: HIVE-5092-1.patch
>
>
> Hiveserver2 fail on Mapreduce local job fail. For example:
> {code}
> select /*+ MAPJOIN(v) */ registration from studenttab10k s join votertab10k v on (s.name = v.name);
> {code}
> The root cause is "class not found" in the local hadoop job (MapredLocalTask.execute). HADOOP_CLASSPATH does not include $HIVE_HOME/lib. Set HADOOP_CLASSPATH correctly will fix the issue.
> However, there is one complexity in Windows. We start Hiveserver2 using Windows service console (services.msc), which takes hiveserver2.xml generated by hive.cmd. There is no way to pass environment variable in hiveserver2.xml (weird but reality). I attach a patch which pass it through command line arguments and relay to HADOOP_CLASSPATH in Hive code. 



--
This message was sent by Atlassian JIRA
(v6.1#6144)