HADOOP-18645. Provide keytab file key name with ServiceStateException (#5433)
Signed-off-by: Tao Li <tomscut@apache.org>
This commit is contained in:
parent
bcc51ce2c5
commit
28d2753d2f
|
@ -314,7 +314,8 @@ public final class SecurityUtil {
|
|||
|
||||
String keytabFilename = conf.get(keytabFileKey);
|
||||
if (keytabFilename == null || keytabFilename.length() == 0) {
|
||||
throw new IOException("Running in secure mode, but config doesn't have a keytab");
|
||||
throw new IOException(
|
||||
"Running in secure mode, but config doesn't have a keytab for key: " + keytabFileKey);
|
||||
}
|
||||
|
||||
String principalConfig = conf.get(userNameKey, System
|
||||
|
|
|
@ -56,7 +56,8 @@ public class TestRouterWithSecureStartup {
|
|||
@Test
|
||||
public void testStartupWithoutKeytab() throws Exception {
|
||||
testCluster(DFS_ROUTER_KEYTAB_FILE_KEY,
|
||||
"Running in secure mode, but config doesn't have a keytab");
|
||||
"Running in secure mode, but config doesn't have a keytab for "
|
||||
+ "key: dfs.federation.router.keytab.file");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue