FAQ
Author: dhruba
Date: Tue Oct 20 21:57:33 2009
New Revision: 827813

URL: http://svn.apache.org/viewvc?rev=827813&view=rev
Log:
use the Http POST method to submit the kill command to Hadoop JT.

Modified:
hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java

Modified: hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java?rev=827813&r1=827812&r2=827813&view=diff
==============================================================================
--- hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java (original)
+++ hadoop/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java Tue Oct 20 21:57:33 2009
@@ -160,8 +160,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 20, '09 at 9:57p
activeOct 20, '09 at 9:57p
posts1
users1
websitehive.apache.org

1 user in discussion

Dhruba: 1 post

People

Translate

site design / logo © 2021 Grokbase