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 90505200CB1 for ; Sat, 24 Jun 2017 23:31:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8EF84160BE6; Sat, 24 Jun 2017 21:31:10 +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 D37D8160BD4 for ; Sat, 24 Jun 2017 23:31:09 +0200 (CEST) Received: (qmail 18016 invoked by uid 500); 24 Jun 2017 21:31:09 -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 18005 invoked by uid 99); 24 Jun 2017 21:31:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Jun 2017 21:31:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 6EE011A032F for ; Sat, 24 Jun 2017 21:31:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -97.888 X-Spam-Level: X-Spam-Status: No, score=-97.888 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id z4D0oVKQizZ7 for ; Sat, 24 Jun 2017 21:31:06 +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 DE6B85FDA5 for ; Sat, 24 Jun 2017 21:31:05 +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 16EBCE0237 for ; Sat, 24 Jun 2017 21:31:04 +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 3BD1221940 for ; Sat, 24 Jun 2017 21:31:02 +0000 (UTC) Date: Sat, 24 Jun 2017 21:31:02 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-18240) Add hbase-thirdparty, a project with hbase utility including an hbase-shaded-thirdparty module with guava, netty, etc. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 24 Jun 2017 21:31:10 -0000 [ https://issues.apache.org/jira/browse/HBASE-18240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16062142#comment-16062142 ] stack commented on HBASE-18240: ------------------------------- The JsonFormatter in protobuf-util is basic but should do the job. Here is output: kalashnikov:hbase.git stack$ ./bin/hbase org.apache.hadoop.hbase.procedure2.TestProcedureUtil { "className": "org.apache.hadoop.hbase.procedure2.ProcedureTestingUtility$TestProcedure", "procId": "10", "submittedTime": "1498339510660", "state": "RUNNABLE", "lastUpdate": "1498339510660", "stateData": "AA==" } adding this main on TestProcedureUtil: public static void main(final String [] args) throws Exception { final TestProcedure proc1 = new TestProcedure(10); final ProcedureProtos.Procedure proto1 = ProcedureUtil.convertToProtoProcedure(proc1); JsonFormat.Printer printer = JsonFormat.printer().omittingInsignificantWhitespace(); System.out.println(printer.print(proto1)); } For display in UI, could style the JSON and filter out state data. For shell, could do simple one-lining (and purge state data... since it opaque. Later we might add Stringification..) > Add hbase-thirdparty, a project with hbase utility including an hbase-shaded-thirdparty module with guava, netty, etc. > ---------------------------------------------------------------------------------------------------------------------- > > Key: HBASE-18240 > URL: https://issues.apache.org/jira/browse/HBASE-18240 > Project: HBase > Issue Type: Sub-task > Components: dependencies > Reporter: stack > Assignee: stack > Fix For: 2.0.0 > > Attachments: HBASE-18240.master.001.patch, hbase-auxillary.tgz > > > This issue is about adding a new related project to host hbase auxillary utility. In this new project, the first thing we'd add is a module to host shaded versions of third party libraries. > This task comes of discussion held here http://apache-hbase.679495.n3.nabble.com/DISCUSS-More-Shading-td4083025.html where one conclusion of the DISCUSSION was "... pushing this part forward with some code is the next logical step. Seems to be consensus about taking our known internal dependencies and performing this shade magic." -- This message was sent by Atlassian JIRA (v6.4.14#64029)