Return-Path: X-Original-To: apmail-sqoop-dev-archive@www.apache.org Delivered-To: apmail-sqoop-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7678810D4E for ; Tue, 3 Dec 2013 01:27:35 +0000 (UTC) Received: (qmail 99638 invoked by uid 500); 3 Dec 2013 01:27:35 -0000 Delivered-To: apmail-sqoop-dev-archive@sqoop.apache.org Received: (qmail 99577 invoked by uid 500); 3 Dec 2013 01:27:35 -0000 Mailing-List: contact dev-help@sqoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sqoop.apache.org Delivered-To: mailing list dev@sqoop.apache.org Received: (qmail 99568 invoked by uid 99); 3 Dec 2013 01:27:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Dec 2013 01:27:35 +0000 Date: Tue, 3 Dec 2013 01:27:35 +0000 (UTC) From: "Jarek Jarcec Cecho (JIRA)" To: dev@sqoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (SQOOP-1246) HBaseImportJob should add job authtoken only if HBase is secured MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SQOOP-1246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jarek Jarcec Cecho reassigned SQOOP-1246: ----------------------------------------- Assignee: Aditya Kishore > HBaseImportJob should add job authtoken only if HBase is secured > ---------------------------------------------------------------- > > Key: SQOOP-1246 > URL: https://issues.apache.org/jira/browse/SQOOP-1246 > Project: Sqoop > Issue Type: Bug > Components: hbase-integration > Affects Versions: 1.4.4 > Reporter: Aditya Kishore > Assignee: Aditya Kishore > Attachments: SQOOP-1246.patch > > > Sqoop's HBase import job incorrectly checks if Hadoop is secured instead of HBase is secured before deciding to add an HBase authtoken, > {code:title=HBaseImportJob.java} > @Override > /** Create the target HBase table before running the job. */ > protected void jobSetup(Job job) throws IOException, ImportException { > ... > // Get method isSecurityEnabled > Method isSecurityEnabled = User.class.getMethod("isSecurityEnabled"); > ... > // Obtain security token if needed > if ((Boolean)isSecurityEnabled.invoke(null)) { > obtainAuthTokenForJob.invoke(user, conf, job); > } > {code} > which of course fails if Hadoop is secured but HBase is not. -- This message was sent by Atlassian JIRA (v6.1#6144)