Author: sershe
Date: Mon Feb 23 23:17:42 2015
New Revision: 1661819
URL: http://svn.apache.org/r1661819
Log:
Fix split generation NPE
Modified:
hive/branches/llap/ql/src/java/org/apache/hadoop/hive/ql/io/HiveInputFormat.java
Modified:
hive/branches/llap/ql/src/java/org/apache/hadoop/hive/ql/io/HiveInputFormat.java
URL:
http://svn.apache.org/viewvc/hive/branches/llap/ql/src/java/org/apache/hadoop/hive/ql/io/HiveInputFormat.java?rev=1661819&r1=1661818&r2=1661819&view=diff
==============================================================================
---
hive/branches/llap/ql/src/java/org/apache/hadoop/hive/ql/io/HiveInputFormat.java
(original)
+++
hive/branches/llap/ql/src/java/org/apache/hadoop/hive/ql/io/HiveInputFormat.java
Mon Feb 23 23:17:42 2015
@@ -214,6 +214,10 @@ public class HiveInputFormat<K extends W
LOG.info("Wrapping " + inputFormat);
@SuppressWarnings("unchecked")
LlapIo<VectorizedRowBatch> llapIo = LlapIoProxy.getIo();
+ if (llapIo == null) {
+ LOG.info("Not using LLAP because IO is not initialized");
+ return inputFormat;
+ }
return castInputFormat(llapIo.getInputFormat(inputFormat));
}