public class TestUsersOperationsWithSecureHadoop extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static String |
CLIENT_NAME |
private static String |
HOST |
private static org.apache.hadoop.minikdc.MiniKdc |
KDC |
private static File |
KEYTAB_FILE |
private static String |
PRINCIPAL |
private static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
TestUsersOperationsWithSecureHadoop() |
Modifier and Type | Method and Description |
---|---|
static void |
setUp() |
static void |
tearDown() |
void |
testAuthUtilLogin() |
void |
testLoginWithUserKeytabAndPrincipal() |
void |
testUserLoginInSecureHadoop()
test login with security enabled configuration To run this test, we must specify the following
system properties:
|
public static final HBaseClassTestRule CLASS_RULE
private static final HBaseTestingUtility TEST_UTIL
private static final File KEYTAB_FILE
private static org.apache.hadoop.minikdc.MiniKdc KDC
private static String CLIENT_NAME
public TestUsersOperationsWithSecureHadoop()
public static void tearDown() throws IOException
IOException
public void testUserLoginInSecureHadoop() throws Exception
hbase.regionserver.kerberos.principal
hbase.regionserver.keytab.file
IOException
Exception
public void testLoginWithUserKeytabAndPrincipal() throws Exception
Exception
public void testAuthUtilLogin() throws Exception
Exception
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.