InterfaceAudience.Private
in 4.0.0.@Deprecated @InterfaceAudience.Public public final class AuthUtil extends Object
{ @code ChoreService choreService = null; // Presumes HBase configuration files are on the classpath final Configuration conf = HBaseConfiguration.create(); final ScheduledChore authChore = AuthUtil.getAuthChore(conf); if (authChore != null) { choreService = new ChoreService("MY_APPLICATION"); choreService.scheduleChore(authChore); } try { // do application work } finally { if (choreService != null) { choreService.shutdown(); } } }See the "Running Canary in a Kerberos-enabled Cluster" section of the HBase Reference Guide for an example of configuring a user of this Auth Chore to run on a secure cluster.
This class will be internal used only from 2.2.0 version, and will transparently work for kerberized applications. For more, please refer Client-side Configuration for Secure Operation
Modifier and Type | Field and Description |
---|---|
static boolean |
HBASE_CLIENT_AUTOMATIC_KEYTAB_RENEWAL_DEFAULT
Deprecated.
|
static String |
HBASE_CLIENT_AUTOMATIC_KEYTAB_RENEWAL_KEY
Deprecated.
Configuration to automatically try to renew keytab-based logins
|
static String |
HBASE_CLIENT_KERBEROS_PRINCIPAL
Deprecated.
Client principal
|
static String |
HBASE_CLIENT_KEYTAB_FILE
Deprecated.
Client keytab file
|
Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.hbase.ScheduledChore |
getAuthChore(org.apache.hadoop.conf.Configuration conf)
Deprecated.
Deprecated since 2.2.0, this method will be
InterfaceAudience.Private use only after 4.0.0. |
public static final String HBASE_CLIENT_KEYTAB_FILE
public static final String HBASE_CLIENT_KERBEROS_PRINCIPAL
public static final String HBASE_CLIENT_AUTOMATIC_KEYTAB_RENEWAL_KEY
public static final boolean HBASE_CLIENT_AUTOMATIC_KEYTAB_RENEWAL_DEFAULT
@Deprecated public static org.apache.hadoop.hbase.ScheduledChore getAuthChore(org.apache.hadoop.conf.Configuration conf) throws IOException
InterfaceAudience.Private
use only after 4.0.0.conf
- the hbase service configurationIOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.