HDFS-13649. Randomize baseDir for MiniDFSCluster in TestReconstructStripedFile and TestReconstructStripedFileWithRandomECPolicy. Contributed by Anbang Hu.
This commit is contained in:
parent
a28848104f
commit
16316b6011
@ -122,7 +122,9 @@ public void setup() throws IOException {
|
|||||||
CodecUtil.IO_ERASURECODE_CODEC_RS_RAWCODERS_KEY,
|
CodecUtil.IO_ERASURECODE_CODEC_RS_RAWCODERS_KEY,
|
||||||
NativeRSRawErasureCoderFactory.CODER_NAME);
|
NativeRSRawErasureCoderFactory.CODER_NAME);
|
||||||
}
|
}
|
||||||
cluster = new MiniDFSCluster.Builder(conf).numDataNodes(dnNum).build();
|
File basedir = new File(GenericTestUtils.getRandomizedTempPath());
|
||||||
|
cluster = new MiniDFSCluster.Builder(conf, basedir).numDataNodes(dnNum)
|
||||||
|
.build();
|
||||||
cluster.waitActive();
|
cluster.waitActive();
|
||||||
|
|
||||||
fs = cluster.getFileSystem();
|
fs = cluster.getFileSystem();
|
||||||
|
Loading…
Reference in New Issue
Block a user