hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prasan...@apache.org
Subject hive git commit: HIVE-13016: ORC FileDump recovery utility fails in Windows (Prasanth Jayachandran reviewed by Jason Dere)
Date Tue, 09 Feb 2016 19:38:22 GMT
Repository: hive
Updated Branches:
  refs/heads/master a11a6ca6b -> dcf74c418


HIVE-13016: ORC FileDump recovery utility fails in Windows (Prasanth Jayachandran reviewed
by Jason Dere)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/dcf74c41
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/dcf74c41
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/dcf74c41

Branch: refs/heads/master
Commit: dcf74c418db6923ec2325bc04ac664325f7397ee
Parents: a11a6ca
Author: Prasanth Jayachandran <j.prasanth.j@gmail.com>
Authored: Tue Feb 9 13:38:07 2016 -0600
Committer: Prasanth Jayachandran <j.prasanth.j@gmail.com>
Committed: Tue Feb 9 13:38:07 2016 -0600

----------------------------------------------------------------------
 ql/src/java/org/apache/hadoop/hive/ql/io/orc/FileDump.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/dcf74c41/ql/src/java/org/apache/hadoop/hive/ql/io/orc/FileDump.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/io/orc/FileDump.java b/ql/src/java/org/apache/hadoop/hive/ql/io/orc/FileDump.java
index 5bcb281..ec23103 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/io/orc/FileDump.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/io/orc/FileDump.java
@@ -69,7 +69,7 @@ public final class FileDump {
   public static final String UNKNOWN = "UNKNOWN";
   public static final String SEPARATOR = Strings.repeat("_", 120) + "\n";
   public static final int DEFAULT_BLOCK_SIZE = 256 * 1024 * 1024;
-  public static final String DEFAULT_BACKUP_PATH = "/tmp";
+  public static final String DEFAULT_BACKUP_PATH = System.getProperty("java.io.tmpdir");
   public static final PathFilter HIDDEN_AND_SIDE_FILE_FILTER = new PathFilter() {
     public boolean accept(Path p) {
       String name = p.getName();
@@ -534,7 +534,7 @@ public final class FileDump {
       if (backup.equals(DEFAULT_BACKUP_PATH)) {
         backupDataPath = new Path(scheme, authority, DEFAULT_BACKUP_PATH + filePath);
       } else {
-        backupDataPath = new Path(backup + filePath);
+        backupDataPath = Path.mergePaths(new Path(backup), corruptPath);
       }
 
       // Move data file to backup path


Mime
View raw message