hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-18240) Add hbase-thirdparty, a project with hbase utility including an hbase-shaded-thirdparty module with guava, netty, etc.
Date Sat, 24 Jun 2017 21:31:02 GMT

    [ 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)

Mime
View raw message