[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 ] Vaibhav Gumashta updated HIVE-5092: --- Resolution: Fixed Status: Resolved (was: Patch Available) Committed to trunk. Thanks for the patch [~hsubramaniyan]. > 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 >Affects Versions: 0.14.0 >Reporter: Daniel Dai >Assignee: Hari Sankar Sivarama Subramaniyan > Fix For: 0.14.0 > > Attachments: HIVE-5092-1.patch, HIVE-5092.2.patch, HIVE-5092.3.patch, > HIVE-5092.4.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.2#6252)
[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 ] Vaibhav Gumashta updated HIVE-5092: --- Affects Version/s: 0.14.0 > 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 >Affects Versions: 0.14.0 >Reporter: Daniel Dai >Assignee: Hari Sankar Sivarama Subramaniyan > Fix For: 0.14.0 > > Attachments: HIVE-5092-1.patch, HIVE-5092.2.patch, HIVE-5092.3.patch, > HIVE-5092.4.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.2#6252)
[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 ] Vaibhav Gumashta updated HIVE-5092: --- Fix Version/s: 0.14.0 > 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 >Affects Versions: 0.14.0 >Reporter: Daniel Dai >Assignee: Hari Sankar Sivarama Subramaniyan > Fix For: 0.14.0 > > Attachments: HIVE-5092-1.patch, HIVE-5092.2.patch, HIVE-5092.3.patch, > HIVE-5092.4.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.2#6252)
[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 ] Hari Sankar Sivarama Subramaniyan updated HIVE-5092: Status: Patch Available (was: Open) > 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: Hari Sankar Sivarama Subramaniyan > Attachments: HIVE-5092-1.patch, HIVE-5092.2.patch, HIVE-5092.3.patch, > HIVE-5092.4.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.2#6252)
[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 ] Hari Sankar Sivarama Subramaniyan updated HIVE-5092: Attachment: HIVE-5092.4.patch [~vaibhavgumashta] Attaching HIVE-5092.4.patch which can be applied on top of the trunk and fix the issue. Please review the same. Thanks Hari > 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: Hari Sankar Sivarama Subramaniyan > Attachments: HIVE-5092-1.patch, HIVE-5092.2.patch, HIVE-5092.3.patch, > HIVE-5092.4.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.2#6252)
[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 ] Hari Sankar Sivarama Subramaniyan updated HIVE-5092: Status: Open (was: Patch Available) > 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: Hari Sankar Sivarama Subramaniyan > Attachments: HIVE-5092-1.patch, HIVE-5092.2.patch, HIVE-5092.3.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.2#6252)
[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 ] Hari Sankar Sivarama Subramaniyan updated HIVE-5092: Status: Patch Available (was: Open) > 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: Hari Sankar Sivarama Subramaniyan > Attachments: HIVE-5092-1.patch, HIVE-5092.2.patch, HIVE-5092.3.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.2#6252)
[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 ] Hari Sankar Sivarama Subramaniyan updated HIVE-5092: Status: Open (was: Patch Available) > 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: Hari Sankar Sivarama Subramaniyan > Attachments: HIVE-5092-1.patch, HIVE-5092.2.patch, HIVE-5092.3.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.2#6252)
[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 ] Hari Sankar Sivarama Subramaniyan updated HIVE-5092: Attachment: HIVE-5092.3.patch [~leftylev] I have added a description as to why the parameter is introduced. [~shanyu] Made the changes in MapRedLocalTask.java. > 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: Hari Sankar Sivarama Subramaniyan > Attachments: HIVE-5092-1.patch, HIVE-5092.2.patch, HIVE-5092.3.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.2#6252)
[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 ] Hari Sankar Sivarama Subramaniyan updated HIVE-5092: Status: Patch Available (was: Open) > 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: Hari Sankar Sivarama Subramaniyan > Attachments: HIVE-5092-1.patch, HIVE-5092.2.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.2#6252)
[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 ] Hari Sankar Sivarama Subramaniyan updated HIVE-5092: Attachment: HIVE-5092.2.patch cc-ing [~daijy] for review. I have rebased the original patch without the change in hiveserver2.cmd changes. We will have the hiveserver2.cmd once we introduce windows scripts for Hive installation. The current changes provide a mechanism for accepting hive.hadoop.classpath as part of hive. Thanks Hari > 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: Hari Sankar Sivarama Subramaniyan > Attachments: HIVE-5092-1.patch, HIVE-5092.2.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.2#6252)
[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)
[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 ] Ashutosh Chauhan updated HIVE-5092: --- Status: Open (was: Patch Available) Patch file name is not correct. [~daijy] you need to reupload the file to get Hive QA run on it. > 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 > Fix For: 0.12.0 > > 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 is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[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 ] Ashutosh Chauhan updated HIVE-5092: --- Status: Patch Available (was: Open) Marking Patch Available to get Hive QA to run on it. > 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 > Fix For: 0.12.0 > > 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 is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[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 ] Ashutosh Chauhan updated HIVE-5092: --- Status: Open (was: Patch Available) bq. variables.put("HADOOP_CLASSPATH", variables.get("HADOOP_CLASSPATH") + ";" + HiveConf.getVar(conf, HiveConf.ConfVars.HIVE_HADOOP_CLASSPATH)); classpath delimiter on unix is : so, we need to handle this appropriately. > 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 > Fix For: 0.12.0 > > 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 is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[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 ] Daniel Dai updated HIVE-5092: - Status: Patch Available (was: Open) > 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 > Fix For: 0.12.0 > > 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 is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira
[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 ] Daniel Dai updated HIVE-5092: - Attachment: HIVE-5092-1.patch > 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 > Fix For: 0.12.0 > > 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 is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira