[ 
https://issues.apache.org/jira/browse/HDDS-1470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17110343#comment-17110343
 ] 

Marton Elek commented on HDDS-1470:
-----------------------------------

I am not sure what is the exact plan here, we had a discussion a few days back:

 1. Rocksdb already have an ldb tool which is very close what we need (it 
provides generic get / scan interface)
 2. But it doesn't have the logic to parse the key based on the available codec 
(SCMDBDefinition can help and we can also defined different definitions for OM 
and Datanode)
 3. The CLI interface (arguments, subcommands) can be very close to the ldb tool
 3. Old ozone sql tool can be removed
 4.  We can support the original ozone sql use case: dump database as SQL 
queries (it's just a different output format).

> Implement a CLI tool to dump the contents of rocksdb metadata
> -------------------------------------------------------------
>
>                 Key: HDDS-1470
>                 URL: https://issues.apache.org/jira/browse/HDDS-1470
>             Project: Hadoop Distributed Data Store
>          Issue Type: Improvement
>            Reporter: Hrishikesh Gadre
>            Assignee: Hrishikesh Gadre
>            Priority: Minor
>
> The DataNode plugin for Ozone stores the protobuf message as the value in the 
> rocksdb metadata store. Since the protobuf message contents are not human 
> readable, it is difficult to introspect (e.g. for debugging). This Jira is to 
> add a command-line tool to dump the contents of rocksdb database in human 
> readable format (e.g. json or yaml).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org

Reply via email to