Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B40EE200CCA for ; Wed, 19 Jul 2017 18:07:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B26461620F1; Wed, 19 Jul 2017 16:07:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0424C161E68 for ; Wed, 19 Jul 2017 18:07:04 +0200 (CEST) Received: (qmail 67399 invoked by uid 500); 19 Jul 2017 16:07:03 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 67242 invoked by uid 99); 19 Jul 2017 16:07:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Jul 2017 16:07:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id AC40B1805CA for ; Wed, 19 Jul 2017 16:07:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -98.702 X-Spam-Level: X-Spam-Status: No, score=-98.702 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_NUMSUBJECT=0.5, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id qaqWqR82-DPP for ; Wed, 19 Jul 2017 16:07:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 1BC5E5FBEA for ; Wed, 19 Jul 2017 16:07:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6A23BE0059 for ; Wed, 19 Jul 2017 16:07:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 26B6821EA1 for ; Wed, 19 Jul 2017 16:07:00 +0000 (UTC) Date: Wed, 19 Jul 2017 16:07:00 +0000 (UTC) From: "Josh Elser (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-16973) Fetching of Delegation tokens (Kerberos) for AccumuloStorageHandler fails in HS2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 19 Jul 2017 16:07:05 -0000 [ https://issues.apache.org/jira/browse/HIVE-16973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16093328#comment-16093328 ] Josh Elser commented on HIVE-16973: ----------------------------------- Thanks so much, [~sushanth]! No clue why that other plexus-utils was getting pulled in (seems like something that needs to get fixed in Accumulo). I really appreciate all of your help. > Fetching of Delegation tokens (Kerberos) for AccumuloStorageHandler fails in HS2 > -------------------------------------------------------------------------------- > > Key: HIVE-16973 > URL: https://issues.apache.org/jira/browse/HIVE-16973 > Project: Hive > Issue Type: Bug > Components: Accumulo Storage Handler > Reporter: Josh Elser > Assignee: Josh Elser > Fix For: 3.0.0 > > Attachments: HIVE-16973.001.patch, HIVE-16973.002.branch-2.patch, HIVE-16973.003.branch-2.patch, HIVE-16973.004-branch-2.patch, HIVE-16973.004.branch-2.patch, HIVE-16973.004-master.patch, HIVE-16973.005-master.patch, HIVE-16973.006-master.patch > > > Had a report from a user that Kerberos+AccumuloStorageHandler+HS2 was broken. Looking into it, it seems like the bit-rot got pretty bad. You'll see something like the following: > {noformat} > Caused by: java.io.IOException: Failed to unwrap AuthenticationToken > at org.apache.hadoop.hive.accumulo.HiveAccumuloHelper.unwrapAuthenticationToken(HiveAccumuloHelper.java:312) > at org.apache.hadoop.hive.accumulo.mr.HiveAccumuloTableInputFormat.getSplits(HiveAccumuloTableInputFormat.java:122) > {noformat} > It appears that some of the code-paths changed since when I first did my testing (or I just did poor testing) and the delegation token was never being fetched/serialized. There also are some issues with fetching the delegation token from Accumulo properly which were addressed in ACCUMULO-4665 > I believe it would also be best to just update the dependency to use Accumulo 1.7 (drop 1.6 support) as it's lacking in this regard. These changes would otherwise get much more complicated with reflection -- Accumulo has moved on past 1.6, so let's do the same in Hive. -- This message was sent by Atlassian JIRA (v6.4.14#64029)