[ https://issues.apache.org/jira/browse/HBASE-22561?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17159792#comment-17159792 ]
gurmukh singh commented on HBASE-22561: --------------------------------------- see that hbase-1.2 is looking of a different hbase.rootdir despite configured as /hbase [hdfs@cm ~]$ hbase org.apache.hadoop.hbase.io.hfile.HFile -f hdfs://m1.aus.cloudera.site:8020/hbase/data/default/class/df1cb243981d6d3d7c87538efd645baa/cf/12ca2549ec614460b034739a6063c3e7 -m -v 2020-07-17 09:04:25,456 INFO [main] Configuration.deprecation: hadoop.native.lib is deprecated. Instead, use io.native.lib.available 2020-07-17 09:04:26,542 INFO [main] Configuration.deprecation: fs.default.name is deprecated. Instead, use fs.defaultFS Scanning -> hdfs://m1.example.site:8020/hbase/data/default/class/df1cb243981d6d3d7c87538efd645baa/cf/12ca2549ec614460b034739a6063c3e7 ERROR, file (hdfs://m1.example.site:8020/hbase/data/default/class/df1cb243981d6d3d7c87538efd645baa/cf/12ca2549ec614460b034739a6063c3e7) is not in HBase's root directory (hdfs://m1.example.site:8020/tmp/hbase-hdfs/hbase/) $ hbase version HBase 1.2.0-cdh5.16.2 Source code repository file:///data/jenkins/workspace/generic-package-centos64-7-0/topdir/BUILD/hbase-1.2.0-cdh5.16.2 revision=Unknown Compiled by jenkins on Mon Jun 3 03:50:03 PDT 2019 >From source with checksum 612ba4e905fe89f5a8d8a9fa74843ef5 The hbase cluster is working fine, only while invoking the Hfile reader, it is looking for a path not set as root. hdfs://m1.example.site:8020/tmp/hbase-hdfs/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)