Get the list of namenodes the user may access.
Obtain a security token for HBase.
Obtain a security token for HBase.
Requirements
1. "hbase.security.authentication" == "kerberos"
2. The HBase classes HBaseConfiguration
and TokenUtil
could be loaded
and invoked.
Hadoop configuration; an HBase configuration is created from this.
a token if the requirements were met, None
if not.
Obtain a security token for HBase.
Obtain a security token for HBase if "hbase.security.authentication" == "kerberos"
Obtain a security token for HBase if "hbase.security.authentication" == "kerberos"
Hadoop configuration; an HBase configuration is created from this.
a token if one was needed
Obtains token for the Hive metastore, using the current user as the principal.
Obtains token for the Hive metastore, using the current user as the principal. Some exceptions are caught and downgraded to a log message.
hadoop configuration; the Hive configuration will be based on this
a token, or None
if there's no need for a token (no metastore URI or principal
in the config), or if a binding exception was caught and downgraded.
Obtains token for the Hive metastore and adds them to the credentials.
Obtains tokens for the namenodes passed in and adds them to the credentials.
Contains util methods to interact with Hadoop from spark.