The mapping from HBase table contents to HDFS Path(s) is an internal
implementation detail. It's purposefully not included in any user
facing API.

The class JMS mentioned can be used to "peak behind the curtain", but
it's an internal implementation class so you can't rely on it being
present or the same in any given version of HBase.

What are you trying to get done with the path? That might help us come
up with a sustainable approach, if there is one.

On Fri, Apr 20, 2018 at 7:42 AM, Jean-Marc Spaggiari
<[email protected]> wrote:
> Hi Ming,
>
> Take a look at the FSUtils... There is plenty of very useful helpers
> there...
>
> JMS
>
> 2018-04-20 8:38 GMT-04:00 Ming <[email protected]>:
>
>> Hello,
>>
>>
>>
>> I am trying to use Java API to get the HDFS path for a given table, but I
>> cannot find that method.
>>
>> For some version, I notice it is under hbase.rootdir, then
>> 'data/namespace/tablename'; for some version of hbase, it is
>> 'data/default/tablename'.
>>
>> So I wish there is a programming way to get that Path string.
>>
>>
>>
>> Any help will be very appreciated!
>>
>>
>>
>> Thanks,
>>
>> Ming
>>
>>

Reply via email to