hadoop-hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zs...@apache.org
Subject svn commit: r827881 - in /hadoop/hive/branches/branch-0.4: CHANGES.txt ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java
Date Wed, 21 Oct 2009 03:47:55 GMT
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);



Mime
View raw message