HDFS-13627. TestErasureCodingExerciseAPIs fails on Windows. Contributed by Anbang Hu.
This commit is contained in:
parent
7c343669ba
commit
91d7c74e6a
@ -40,6 +40,7 @@
|
|||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import java.io.DataOutputStream;
|
import java.io.DataOutputStream;
|
||||||
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.nio.file.Paths;
|
import java.nio.file.Paths;
|
||||||
import java.security.NoSuchAlgorithmException;
|
import java.security.NoSuchAlgorithmException;
|
||||||
@ -91,8 +92,10 @@ public void setupCluster() throws IOException {
|
|||||||
// Set up java key store
|
// Set up java key store
|
||||||
String testRootDir = Paths.get(new FileSystemTestHelper().getTestRootDir())
|
String testRootDir = Paths.get(new FileSystemTestHelper().getTestRootDir())
|
||||||
.toString();
|
.toString();
|
||||||
|
Path targetFile = new Path(new File(testRootDir).getAbsolutePath(),
|
||||||
|
"test.jks");
|
||||||
String keyProviderURI = JavaKeyStoreProvider.SCHEME_NAME + "://file"
|
String keyProviderURI = JavaKeyStoreProvider.SCHEME_NAME + "://file"
|
||||||
+ new Path(testRootDir, "test.jks").toUri();
|
+ targetFile.toUri();
|
||||||
conf.set(CommonConfigurationKeysPublic.HADOOP_SECURITY_KEY_PROVIDER_PATH,
|
conf.set(CommonConfigurationKeysPublic.HADOOP_SECURITY_KEY_PROVIDER_PATH,
|
||||||
keyProviderURI);
|
keyProviderURI);
|
||||||
conf.setBoolean(DFSConfigKeys.DFS_NAMENODE_DELEGATION_TOKEN_ALWAYS_USE_KEY,
|
conf.setBoolean(DFSConfigKeys.DFS_NAMENODE_DELEGATION_TOKEN_ALWAYS_USE_KEY,
|
||||||
|
Loading…
Reference in New Issue
Block a user