Index: ql/src/java/org/apache/hadoop/hive/ql/Context.java =================================================================== --- ql/src/java/org/apache/hadoop/hive/ql/Context.java (revision 98b4561fe75d74317f68020d4c4eee5f8a6527b3) +++ ql/src/java/org/apache/hadoop/hive/ql/Context.java (revision ) @@ -143,6 +143,7 @@ if (mkdir) { try { FileSystem fs = dirPath.getFileSystem(conf); + dirPath = new Path(fs.makeQualified(dirPath).toString()); if (!fs.mkdirs(dirPath)) throw new RuntimeException("Cannot make directory: " + dirPath.toString());