Index: ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java =================================================================== --- ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java (revision 1560204) +++ ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java (working copy) @@ -95,6 +95,7 @@ import org.apache.hadoop.mapred.InputFormat; import org.apache.hadoop.util.StringUtils; import org.apache.thrift.TException; +import org.apache.thrift.transport.TTransportException; import com.google.common.collect.Sets; @@ -605,6 +606,12 @@ if (!ifNotExists) { throw new HiveException(e); } + } catch (TTransportException tte) { + LOG.error(tte.getMessage()); + throw new HiveException( + new FileNotFoundException + ("Could not locate the file " + + tbl.getDataLocation().toString())); } catch (Exception e) { throw new HiveException(e); }