Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 36FCB11F6D for ; Tue, 24 Jun 2014 10:55:25 +0000 (UTC) Received: (qmail 74936 invoked by uid 500); 24 Jun 2014 10:55:24 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 74883 invoked by uid 500); 24 Jun 2014 10:55:24 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 74667 invoked by uid 99); 24 Jun 2014 10:55:24 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2014 10:55:24 +0000 Date: Tue, 24 Jun 2014 10:55:24 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-11407) hbase-client should not require Jackson for pure HBase queries be executed 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/HBASE-11407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14041965#comment-14041965 ] Sergey Beryozkin commented on HBASE-11407: ------------------------------------------ The patch is not about removing the dependency in hbase-client pom.xml, it simply moves Jackson ObjectMapper static initialization into a dedicated utility: this will let those consumers of HBase Client API who do not expect to do any sort of JSON formatting exclude Jackson dependency in their own poms. In my case it is the Apache CXF server where not all users may want to have Jackson dependencies. Removing it completely as per the comment may be a better solution but I guess it is more sensitive solution and may take longer to be done. > hbase-client should not require Jackson for pure HBase queries be executed > --------------------------------------------------------------------------- > > Key: HBASE-11407 > URL: https://issues.apache.org/jira/browse/HBASE-11407 > Project: HBase > Issue Type: Improvement > Components: Client > Affects Versions: 0.98.3 > Reporter: Sergey Beryozkin > Priority: Minor > Fix For: 0.98.4 > > Attachments: diff.txt > > > Including the hbase-client module dependency and excluding Jackson dependencies causes the pure HBase query (run with HTableInterface) fail with Jackson ObjectMapper ClassNotFoundException. > This is due to org.apache.hadoop.hbase.client.Operation having ObjectMapper statically initialized. > Moving ObjectMapper to a dedicated utility will help. The patch will be attached. -- This message was sent by Atlassian JIRA (v6.2#6252)