Fail fast if HDFS cluster shuts itself down

This commit is contained in:
Robert Muir 2015-12-20 22:30:41 -05:00
parent 53530f1243
commit 99f2cde225
1 changed files with 0 additions and 3 deletions

View File

@ -79,8 +79,5 @@ public class MiniHDFS {
tmp = Files.createTempFile(baseDir, null, null);
Files.write(tmp, Integer.toString(dfs.getNameNodePort()).getBytes(StandardCharsets.UTF_8));
Files.move(tmp, baseDir.resolve(PORT_FILE_NAME), StandardCopyOption.ATOMIC_MOVE);
// don't rely on hadoop thread leaks, wait forever, until you kill me
Thread.sleep(Long.MAX_VALUE);
}
}