[
https://issues.apache.org/jira/browse/HBASE-26205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17409006#comment-17409006
]
Hudson commented on HBASE-26205:
--------------------------------
Results for branch branch-2.3
[build #285 on
builds.a.o|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/branch-2.3/285/]:
(x) *{color:red}-1 overall{color}*
----
details (if available):
(/) {color:green}+1 general checks{color}
-- For more information [see general
report|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/branch-2.3/285/General_20Nightly_20Build_20Report/]
(x) {color:red}-1 jdk8 hadoop2 checks{color}
-- For more information [see jdk8 (hadoop2)
report|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/branch-2.3/285/JDK8_20Nightly_20Build_20Report_20_28Hadoop2_29/]
(/) {color:green}+1 jdk8 hadoop3 checks{color}
-- For more information [see jdk8 (hadoop3)
report|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/branch-2.3/285/JDK8_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 jdk11 hadoop3 checks{color}
-- For more information [see jdk11
report|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/branch-2.3/285/JDK11_20Nightly_20Build_20Report_20_28Hadoop3_29/]
(/) {color:green}+1 source release artifact{color}
-- See build output for details.
(/) {color:green}+1 client integration test{color}
> TableMRUtil#initCredentialsForCluster should use specified conf for
> UserProvider
> --------------------------------------------------------------------------------
>
> Key: HBASE-26205
> URL: https://issues.apache.org/jira/browse/HBASE-26205
> Project: HBase
> Issue Type: Bug
> Components: mapreduce
> Reporter: Shinya Yoshida
> Assignee: Shinya Yoshida
> Priority: Major
> Fix For: 2.5.0, 3.0.0-alpha-2, 2.4.6, 2.3.7
>
>
> {code:java}
> /**
> * Obtain an authentication token, for the specified cluster, on behalf of
> the current user
> * and add it to the credentials for the given map reduce job.
> *
> * @param job The job that requires the permission.
> * @param conf The configuration to use in connecting to the peer cluster
> * @throws IOException When the authentication token cannot be obtained.
> */
> public static void initCredentialsForCluster(Job job, Configuration conf)
> throws IOException {
> UserProvider userProvider =
> UserProvider.instantiate(job.getConfiguration());
> if (userProvider.isHBaseSecurityEnabled()) {
> try {
> Connection peerConn = ConnectionFactory.createConnection(conf);
> try {
> TokenUtil.addTokenForJob(peerConn, userProvider.getCurrent(), job);
> } finally {
> peerConn.close();
> }
> } catch (InterruptedException e) {
> LOG.info("Interrupted obtaining user authentication token");
> Thread.interrupted();
> }
> }
> }
> {code}
> TableMapReduceUtil#initCredentialsForCluster uses job's configuration instead
> of conf in argument for UserProvider.
> This causes that token is not obtained for secure cluster in case of job's
> configuration contains hbase.security.authentication=simple.
> Because userProvider.isHBaseSecurityEnabled() checks that
> hbase.security.authentication is kerberos.
> If conf is configured for secure cluster, hbase.security.authentication is
> kerberos and it's natural to use conf for UserProvider instead of job's
> configuration in this method.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)