public class HBaseSinkSecurityManager extends Object
Constructor and Description |
---|
HBaseSinkSecurityManager() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isSecurityEnabled(org.apache.hadoop.conf.Configuration conf)
Checks if security is enabled for the HBase cluster.
|
static org.apache.hadoop.hbase.security.User |
login(org.apache.hadoop.conf.Configuration conf,
String hostname,
String kerberosPrincipal,
String kerberosKeytab)
Login the user using the configuration, and the hostname specified to use
for logging in.
|
public static boolean isSecurityEnabled(org.apache.hadoop.conf.Configuration conf)
public static org.apache.hadoop.hbase.security.User login(org.apache.hadoop.conf.Configuration conf, String hostname, String kerberosPrincipal, String kerberosKeytab) throws IOException
conf
- - Configuration to use for logging the user in.hostname
- - The hostname to use for logging the user in. If no
hostname is specified (null or empty string), the canonical hostname for
the address returned by InetAddress.getLocalHost() will be
used.IOException
- if login failed, or hostname lookup failed.Copyright © 2009-2014 Apache Software Foundation. All Rights Reserved.