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

gurmukh singh commented on HBASE-22561:
---------------------------------------

Same for hbase 2.1

 

sudo -u hbase hbase org.apache.hadoop.hbase.io.hfile.HFile -s hbase 
org.apache.hadoop.hbase.io.hfile.HFile -f 
/hbase/data/default/class/73c16f8deb54c967a2b5f58e2f2370b2/cf/b647dfb79d5f45ebba0ca17ba9c07740
 -m -v
20/07/17 10:06:56 WARN impl.MetricsConfig: Cannot locate configuration: tried 
hadoop-metrics2-hbase.properties,hadoop-metrics2.properties
20/07/17 10:06:56 INFO impl.MetricsSystemImpl: Scheduled Metric snapshot period 
at 10 second(s).
20/07/17 10:06:56 INFO impl.MetricsSystemImpl: HBase metrics system started
20/07/17 10:06:56 INFO metrics.MetricRegistries: Loaded MetricRegistries class 
org.apache.hadoop.hbase.metrics.impl.MetricRegistriesImpl
Scanning -> 
/hbase/data/default/class/73c16f8deb54c967a2b5f58e2f2370b2/cf/b647dfb79d5f45ebba0ca17ba9c07740
ERROR, file 
(/hbase/data/default/class/73c16f8deb54c967a2b5f58e2f2370b2/cf/b647dfb79d5f45ebba0ca17ba9c07740)
 is not in HBase's root directory 
(hdfs://m1.aus.cloudera.site:8020/tmp/hbase-hbase/hbase/)

> modify HFilePrettyPrinter to accept non-hbase.rootdir directories
> -----------------------------------------------------------------
>
>                 Key: HBASE-22561
>                 URL: https://issues.apache.org/jira/browse/HBASE-22561
>             Project: HBase
>          Issue Type: Improvement
>    Affects Versions: 3.0.0-alpha-1, 2.2.0, 2.3.0, 2.1.5
>            Reporter: Artem Ervits
>            Assignee: Artem Ervits
>            Priority: Minor
>             Fix For: 3.0.0-alpha-1, 2.3.0, 2.0.6, 2.2.1, 2.1.6
>
>         Attachments: HBASE-22561.v06.patch, HBASE-22561.v07.patch, 
> HBASE-22561.v11.patch, HBASE-22561.v12.patch, non_root_dir.png, root_dir.png
>
>
> Today {{hbase hfile}} utility accepts only _hbase.rootDir_ directory. It is 
> more useful to pass other locations with HFile as well.
> {code:java}
> hbase org.apache.hadoop.hbase.io.hfile.HFilePrettyPrinter hfileoutput
> ...
> ERROR, file (hfileoutput) is not in HBase's root directory 
> (hdfs://hadoop.example.com:9000/apps/hbase/)
> {code}



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

Reply via email to