Index: src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java =================================================================== --- src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java (revision 1340432) +++ src/main/java/org/apache/hadoop/hbase/regionserver/wal/HLogSplitter.java (working copy) @@ -552,6 +552,13 @@ if (fs.exists(dst)) { fs.delete(dst, false); } else { + Path regionDir = dst.getParent().getParent(); + if (!fs.exists(regionDir)) { + // See HBASE-6050. + LOG.warn("Could not move recovered edits from " + src + + " to destination " +regionDir+ " as it doesn't exist."); + continue; + } Path dstdir = dst.getParent(); if (!fs.exists(dstdir)) { if (!fs.mkdirs(dstdir)) LOG.warn("mkdir failed on " + dstdir);