Index: ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java =================================================================== --- ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java (revision 1593135) +++ ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java (working copy) @@ -3046,7 +3046,7 @@ throws IOException, InstantiationException, IllegalAccessException { // create a dummy empty file in a new directory - String newDir = hiveScratchDir + File.separator + sequenceNumber; + String newDir = hiveScratchDir + Path.SEPARATOR + sequenceNumber; Path newPath = new Path(newDir); FileSystem fs = newPath.getFileSystem(job); fs.mkdirs(newPath); @@ -3054,7 +3054,7 @@ //in the file status. This makes sure that all paths which goes into PathToPartitionInfo are always listed status //file path. newPath = fs.makeQualified(newPath); - String newFile = newDir + File.separator + "emptyFile"; + String newFile = newDir + Path.SEPARATOR + "emptyFile"; Path newFilePath = new Path(newFile); RecordWriter recWriter = outFileFormat.newInstance().getHiveRecordWriter(job, newFilePath,