|
|
@ -205,7 +205,7 @@ public class HDFSRepositoryFactory extends ConfigRepositoryFactory<HDFSConfig> { |
|
|
|
|
|
|
|
|
|
|
|
private void reset() throws Exception { |
|
|
|
private void reset() throws Exception { |
|
|
|
refreshConfig(); |
|
|
|
refreshConfig(); |
|
|
|
resetDeFaultRealm(); |
|
|
|
resetDefaultRealm(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -244,7 +244,7 @@ public class HDFSRepositoryFactory extends ConfigRepositoryFactory<HDFSConfig> { |
|
|
|
* |
|
|
|
* |
|
|
|
* @throws Exception |
|
|
|
* @throws Exception |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private void resetDeFaultRealm() throws Exception { |
|
|
|
private void resetDefaultRealm() throws Exception { |
|
|
|
|
|
|
|
|
|
|
|
Field field = KerberosName.class.getDeclaredField("defaultRealm"); |
|
|
|
Field field = KerberosName.class.getDeclaredField("defaultRealm"); |
|
|
|
assert field != null; |
|
|
|
assert field != null; |
|
|
|