/** * Clean up any temp detritus that may have been left around from previous operation attempts. */ void cleanupTempDir() throws IOException { deleteDir(getTempDir()); }
/** * Generate a unique temporary Path. Used in conjuction with commitStoreFile() * to get a safer file creation. * <code> * Path file = fs.createTempName(); * ...StoreFile.Writer(file)... * fs.commitStoreFile("family", file); * </code> * * @param suffix extra information to append to the generated name * @return Unique {@link Path} of the temporary file */ public Path createTempName(final String suffix) { return new Path(getTempDir(), generateUniqueName(suffix)); }
Path tmpPath = new Path(getTempDir(), REGION_INFO_FILE);
" into tmpdir=" + fs.getTempDir() + ", totalSize=" + TraditionalBinaryPrefix.long2String(cr.getSize(), "", 1));
FileStatus[] ls = r.getFilesystem().listStatus(r.getRegionFileSystem().getTempDir()); assertEquals(1, ls.length); Path storeTempDir = new Path(r.getRegionFileSystem().getTempDir(), Bytes.toString(COLUMN_FAMILY)); assertTrue(r.getFilesystem().exists(storeTempDir)); ls = r.getFilesystem().listStatus(storeTempDir);
assertEquals(3, storeFiles.length); Path storeTempDir = new Path(regionFs.getTempDir(), Bytes.toString(FAMILIES[0])); assertTrue(fs.exists(storeTempDir)); FileStatus[] tempFiles = FSUtils.listStatus(fs, storeTempDir);
Path familyTempDir = new Path(fs.getTempDir(), family.getNameAsString()); StoreFileWriter.Builder builder = new StoreFileWriter.Builder(conf, writerCacheConf, this.getFileSystem())
Path tmpDir = new Path(region.getRegionFileSystem().getTempDir(), Bytes.toString(family)); FileStatus[] files = FSUtils.listStatus(fs, tmpDir); String errorMsg = "Expected to find 1 file in the region temp directory "
/** * Clean up any temp detritus that may have been left around from previous operation attempts. */ void cleanupTempDir() throws IOException { deleteDir(getTempDir()); }
/** * Generate a unique temporary Path. Used in conjuction with commitStoreFile() * to get a safer file creation. * <code> * Path file = fs.createTempName(); * ...StoreFile.Writer(file)... * fs.commitStoreFile("family", file); * </code> * * @param suffix extra information to append to the generated name * @return Unique {@link Path} of the temporary file */ public Path createTempName(final String suffix) { return new Path(getTempDir(), generateUniqueName(suffix)); }
Path tmpPath = new Path(getTempDir(), REGION_INFO_FILE);
+ " into tmpdir=" + fs.getTempDir() + ", totalSize=" + TraditionalBinaryPrefix.long2String(cr.getSize(), "", 1));
FileStatus[] ls = r.getFilesystem().listStatus(r.getRegionFileSystem().getTempDir()); assertEquals(1, ls.length); Path storeTempDir = new Path(r.getRegionFileSystem().getTempDir(), Bytes.toString(COLUMN_FAMILY)); assertTrue(r.getFilesystem().exists(storeTempDir)); ls = r.getFilesystem().listStatus(storeTempDir);
assertEquals(3, storeFiles.length); Path storeTempDir = new Path(regionFs.getTempDir(), Bytes.toString(FAMILIES[0])); assertTrue(fs.exists(storeTempDir)); FileStatus[] tempFiles = FSUtils.listStatus(fs, storeTempDir);
Path tmpDir = new Path(region.getRegionFileSystem().getTempDir(), Bytes.toString(family)); FileStatus[] files = FSUtils.listStatus(fs, tmpDir); String errorMsg = "Expected to find 1 file in the region temp directory "