Search in sources :

Example 1 with SCMHTTPServerConfig

use of org.apache.hadoop.hdds.scm.server.SCMHTTPServerConfig in project ozone by apache.

the class TestDelegationToken method createCredentialsInKDC.

private void createCredentialsInKDC() throws Exception {
    ScmConfig scmConfig = conf.getObject(ScmConfig.class);
    SCMHTTPServerConfig httpServerConfig = conf.getObject(SCMHTTPServerConfig.class);
    createPrincipal(scmKeytab, scmConfig.getKerberosPrincipal());
    createPrincipal(spnegoKeytab, httpServerConfig.getKerberosPrincipal());
    createPrincipal(testUserKeytab, testUserPrincipal);
    createPrincipal(omKeyTab, conf.get(OZONE_OM_KERBEROS_PRINCIPAL_KEY));
}
Also used : ScmConfig(org.apache.hadoop.hdds.scm.ScmConfig) SCMHTTPServerConfig(org.apache.hadoop.hdds.scm.server.SCMHTTPServerConfig)

Example 2 with SCMHTTPServerConfig

use of org.apache.hadoop.hdds.scm.server.SCMHTTPServerConfig in project ozone by apache.

the class TestSecureOzoneCluster method createCredentialsInKDC.

private void createCredentialsInKDC() throws Exception {
    ScmConfig scmConfig = conf.getObject(ScmConfig.class);
    SCMHTTPServerConfig httpServerConfig = conf.getObject(SCMHTTPServerConfig.class);
    createPrincipal(scmKeytab, scmConfig.getKerberosPrincipal());
    createPrincipal(spnegoKeytab, httpServerConfig.getKerberosPrincipal());
    createPrincipal(testUserKeytab, testUserPrincipal);
    createPrincipal(omKeyTab, conf.get(OZONE_OM_KERBEROS_PRINCIPAL_KEY));
}
Also used : ScmConfig(org.apache.hadoop.hdds.scm.ScmConfig) SCMHTTPServerConfig(org.apache.hadoop.hdds.scm.server.SCMHTTPServerConfig)

Aggregations

ScmConfig (org.apache.hadoop.hdds.scm.ScmConfig)2 SCMHTTPServerConfig (org.apache.hadoop.hdds.scm.server.SCMHTTPServerConfig)2