FAQ
Author: zshao
Date: Wed Oct 21 03:47:55 2009
New Revision: 827881

URL: http://svn.apache.org/viewvc?rev=827881&view=rev
Log:
HIVE-892. Hive to kill hadoop jobs using POST. (Dhruba Borthakur via zshao)

Modified:
hadoop/hive/branches/branch-0.4/CHANGES.txt
hadoop/hive/branches/branch-0.4/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java

Modified: hadoop/hive/branches/branch-0.4/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hive/branches/branch-0.4/CHANGES.txt?rev=827881&r1=827880&r2=827881&view=diff
==============================================================================
--- hadoop/hive/branches/branch-0.4/CHANGES.txt (original)
+++ hadoop/hive/branches/branch-0.4/CHANGES.txt Wed Oct 21 03:47:55 2009
@@ -26,6 +26,8 @@

HIVE-890. Fix cli.sh for detecting Hadoop versions. (Paul Huff via zshao)

+ HIVE-892. Hive to kill hadoop jobs using POST. (Dhruba Borthakur via zshao)
+
Release 0.4.0

INCOMPATIBLE CHANGES

Modified: hadoop/hive/branches/branch-0.4/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java
URL: http://svn.apache.org/viewvc/hadoop/hive/branches/branch-0.4/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java?rev=827881&r1=827880&r2=827881&view=diff
==============================================================================
--- hadoop/hive/branches/branch-0.4/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java (original)
+++ hadoop/hive/branches/branch-0.4/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java Wed Oct 21 03:47:55 2009
@@ -155,8 +155,10 @@
String uri = elems.next();
try {
System.err.println("killing job with: " + uri);
- int retCode = ((java.net.HttpURLConnection) new java.net.URL(uri)
- .openConnection()).getResponseCode();
+ java.net.HttpURLConnection conn = (java.net.HttpURLConnection)
+ new java.net.URL(uri).openConnection();
+ conn.setRequestMethod("POST");
+ int retCode = conn.getResponseCode();
if (retCode != 200) {
System.err.println("Got an error trying to kill job with URI: "
+ uri + " = " + retCode);

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommits @
categorieshive, hadoop
postedOct 21, '09 at 3:48a
activeOct 21, '09 at 3:48a
posts1
users1
websitehive.apache.org

1 user in discussion

Zshao: 1 post

People

Translate

site design / logo © 2021 Grokbase