org.apache.hadoop.fs.Path



API Populatity

36 Client projects

Project: org.apache

Project apache/hive in file ...ive.ql.io.rcfile.merge.RCFileKeyBufferWrapper.java (2011-06-27)
@@ -22,6 +22,7 @@
 import java.io.DataOutput;
 import java.io.IOException;
 
+import org.apache.hadoop.fs.Path;
 import org.apache.hadoop.hive.ql.io.RCFile.KeyBuffer;
 import org.apache.hadoop.io.WritableComparable;
 import org.apache.hadoop.io.compress.CompressionCodec;
@@ -33,7 +34,8 @@
   protected int recordLength;
   protected int keyLength;
   protected int compressedKeyLength;
-  
+  protected Path inputPath;
+
   protected CompressionCodec codec;
 
   protected RCFileKeyBufferWrapper() {
Project amplab/tachyon in file ...a701d0da90058876b/src.main.java.tachyon.Users.java (2013-03-01)
@@ -9,7 +9,6 @@ import java.util.Map;
 import java.util.Map.Entry;
 
 import org.apache.commons.io.FileUtils;
-import org.apache.hadoop.fs.Path;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -90,7 +89,7 @@ public class Users {
         folder = getUserHdfsTempFolder(userId);
         sb.append(" Also remove users HDFS folder " + folder);
         HdfsClient tHdfsClient = new HdfsClient(Config.HDFS_ADDRESS);
-        tHdfsClient.delete(new Path(folder), true);
+        tHdfsClient.delete(folder, true);
       }
     }
 
Project apache/hbase in file ...va.org.apache.hadoop.hbase.master.TableDelete.java (2008-02-19)
@@ -22,6 +22,7 @@ package org.apache.hadoop.hbase.master;
 import java.io.IOException;
 import java.util.HashSet;
 
+import org.apache.hadoop.fs.Path;
 import org.apache.hadoop.hbase.HRegion;
 import org.apache.hadoop.hbase.HRegionInfo;
 import org.apache.hadoop.hbase.HRegionInterface;
@@ -62,6 +63,9 @@ class TableDelete extends ChangeTableState {
       }
     }
     super.postProcessMeta(m, server);
+    
+    // delete the table's folder from fs.
+    master.fs.delete(new Path(master.rootdir, tableName.toString()));
   }
 
   @Override