HDFS-11619. Ozone: Unit tests running failed in Windows. Contributed by Yiqun Lin.
This commit is contained in:
parent
aa16380d71
commit
fadfe37019
|
@ -43,7 +43,6 @@ import java.io.Closeable;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.InetSocketAddress;
|
import java.net.InetSocketAddress;
|
||||||
import java.net.URISyntaxException;
|
import java.net.URISyntaxException;
|
||||||
import java.net.URL;
|
|
||||||
import java.nio.file.Files;
|
import java.nio.file.Files;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.nio.file.Paths;
|
import java.nio.file.Paths;
|
||||||
|
@ -260,9 +259,9 @@ public final class MiniOzoneCluster extends MiniDFSCluster
|
||||||
super(conf);
|
super(conf);
|
||||||
this.conf = conf;
|
this.conf = conf;
|
||||||
|
|
||||||
URL p = conf.getClass().getResource("");
|
path = GenericTestUtils.getTempPath(
|
||||||
path = p.getPath().concat(MiniOzoneCluster.class.getSimpleName() + UUID
|
MiniOzoneCluster.class.getSimpleName() +
|
||||||
.randomUUID().toString());
|
UUID.randomUUID().toString());
|
||||||
runID = UUID.randomUUID();
|
runID = UUID.randomUUID();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue