You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by he...@apache.org on 2011/10/24 05:16:10 UTC
svn commit: r1188018 -
/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/io/HiveInputFormat.java
Author: heyongqiang
Date: Mon Oct 24 03:16:10 2011
New Revision: 1188018
URL: http://svn.apache.org/viewvc?rev=1188018&view=rev
Log:
HIVE-1741: HiveInputFormat.readFields should print the cause when there's an exception (Ashutosh Chauhan via He Yongqiang)
Modified:
hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/io/HiveInputFormat.java
Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/io/HiveInputFormat.java
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/io/HiveInputFormat.java?rev=1188018&r1=1188017&r2=1188018&view=diff
==============================================================================
--- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/io/HiveInputFormat.java (original)
+++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/io/HiveInputFormat.java Mon Oct 24 03:16:10 2011
@@ -147,7 +147,7 @@ public class HiveInputFormat<K extends W
} catch (Exception e) {
throw new IOException(
"Cannot create an instance of InputSplit class = "
- + inputSplitClassName + ":" + e.getMessage());
+ + inputSplitClassName + ":" + e.getMessage(), e);
}
inputSplit.readFields(in);
inputFormatClassName = in.readUTF();
@@ -215,7 +215,7 @@ public class HiveInputFormat<K extends W
inputFormatClassName = hsplit.inputFormatClassName();
inputFormatClass = job.getClassByName(inputFormatClassName);
} catch (Exception e) {
- throw new IOException("cannot find class " + inputFormatClassName);
+ throw new IOException("cannot find class " + inputFormatClassName, e);
}
// clone a jobConf for setting needed columns for reading