You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Biju N <bi...@gmail.com> on 2017/06/20 03:27:48 UTC

HTableDescriptor

Hi There,
   From the docs. HTableDescriptor is deprecated and will be removed from
3.0. But both client.Table#getTableDescriptor and
client.Admin#getTableDescriptor returns HTableDescriptor object. Is there a
reason why these methods return the deprecated type? Looking to change code
from prior versions to not use the deprecated classes.

Thanks,
Biju

Re: HTableDescriptor

Posted by Josh Elser <jo...@gmail.com>.
Let me follow along there too. I ran into this one while rebase'ing some 
changes on Master. There wasn't a way (that I saw) to create the 
necessary objects that didn't trigger a deprecation warning :)

On 6/19/17 11:55 PM, Biju N wrote:
>     1. HBASE-18241 <https://issues.apache.org/jira/browse/HBASE-18241>
>      created.
> 
> 
> On Mon, Jun 19, 2017 at 11:47 PM, Ted Yu <yu...@gmail.com> wrote:
> 
>> By 'should be' I meant the desired formation.
>>
>> Do you mind logging a JIRA which changes the return type for master branch
>> ?
>>
>> Cheers
>>
>> On Mon, Jun 19, 2017 at 8:44 PM, Biju N <bi...@gmail.com> wrote:
>>
>>> Thanks Ted for the quick response. Looked at the code in "master" branch
>>> and seems to have the return type as HTableDescriptor. Probably I am
>>> looking at the wrong branch?
>>>
>>> https://github.com/apache/hbase/blob/master/hbase-
>>> client/src/main/java/org/apache/hadoop/hbase/client/Admin.java#L200
>>>
>>> https://github.com/apache/hbase/blob/master/hbase-
>>> client/src/main/java/org/apache/hadoop/hbase/client/Table.java#L69
>>>
>>> On Mon, Jun 19, 2017 at 11:33 PM, Ted Yu <yu...@gmail.com> wrote:
>>>
>>>> I guess in branch-2, this is to keep backward compatibility.
>>>>
>>>> In master branch, TableDescriptor should be returned from these two
>>>> methods.
>>>>
>>>> On Mon, Jun 19, 2017 at 8:27 PM, Biju N <bi...@gmail.com>
>> wrote:
>>>>
>>>>> Hi There,
>>>>>     From the docs. HTableDescriptor is deprecated and will be removed
>>> from
>>>>> 3.0. But both client.Table#getTableDescriptor and
>>>>> client.Admin#getTableDescriptor returns HTableDescriptor object. Is
>>>> there
>>>>> a
>>>>> reason why these methods return the deprecated type? Looking to
>> change
>>>> code
>>>>> from prior versions to not use the deprecated classes.
>>>>>
>>>>> Thanks,
>>>>> Biju
>>>>>
>>>>
>>>
>>
> 

Re: HTableDescriptor

Posted by Biju N <bi...@gmail.com>.
   1. HBASE-18241 <https://issues.apache.org/jira/browse/HBASE-18241>
    created.


On Mon, Jun 19, 2017 at 11:47 PM, Ted Yu <yu...@gmail.com> wrote:

> By 'should be' I meant the desired formation.
>
> Do you mind logging a JIRA which changes the return type for master branch
> ?
>
> Cheers
>
> On Mon, Jun 19, 2017 at 8:44 PM, Biju N <bi...@gmail.com> wrote:
>
> > Thanks Ted for the quick response. Looked at the code in "master" branch
> > and seems to have the return type as HTableDescriptor. Probably I am
> > looking at the wrong branch?
> >
> > https://github.com/apache/hbase/blob/master/hbase-
> > client/src/main/java/org/apache/hadoop/hbase/client/Admin.java#L200
> >
> > https://github.com/apache/hbase/blob/master/hbase-
> > client/src/main/java/org/apache/hadoop/hbase/client/Table.java#L69
> >
> > On Mon, Jun 19, 2017 at 11:33 PM, Ted Yu <yu...@gmail.com> wrote:
> >
> > > I guess in branch-2, this is to keep backward compatibility.
> > >
> > > In master branch, TableDescriptor should be returned from these two
> > > methods.
> > >
> > > On Mon, Jun 19, 2017 at 8:27 PM, Biju N <bi...@gmail.com>
> wrote:
> > >
> > > > Hi There,
> > > >    From the docs. HTableDescriptor is deprecated and will be removed
> > from
> > > > 3.0. But both client.Table#getTableDescriptor and
> > > > client.Admin#getTableDescriptor returns HTableDescriptor object. Is
> > > there
> > > > a
> > > > reason why these methods return the deprecated type? Looking to
> change
> > > code
> > > > from prior versions to not use the deprecated classes.
> > > >
> > > > Thanks,
> > > > Biju
> > > >
> > >
> >
>

Re: HTableDescriptor

Posted by Ted Yu <yu...@gmail.com>.
By 'should be' I meant the desired formation.

Do you mind logging a JIRA which changes the return type for master branch ?

Cheers

On Mon, Jun 19, 2017 at 8:44 PM, Biju N <bi...@gmail.com> wrote:

> Thanks Ted for the quick response. Looked at the code in "master" branch
> and seems to have the return type as HTableDescriptor. Probably I am
> looking at the wrong branch?
>
> https://github.com/apache/hbase/blob/master/hbase-
> client/src/main/java/org/apache/hadoop/hbase/client/Admin.java#L200
>
> https://github.com/apache/hbase/blob/master/hbase-
> client/src/main/java/org/apache/hadoop/hbase/client/Table.java#L69
>
> On Mon, Jun 19, 2017 at 11:33 PM, Ted Yu <yu...@gmail.com> wrote:
>
> > I guess in branch-2, this is to keep backward compatibility.
> >
> > In master branch, TableDescriptor should be returned from these two
> > methods.
> >
> > On Mon, Jun 19, 2017 at 8:27 PM, Biju N <bi...@gmail.com> wrote:
> >
> > > Hi There,
> > >    From the docs. HTableDescriptor is deprecated and will be removed
> from
> > > 3.0. But both client.Table#getTableDescriptor and
> > > client.Admin#getTableDescriptor returns HTableDescriptor object. Is
> > there
> > > a
> > > reason why these methods return the deprecated type? Looking to change
> > code
> > > from prior versions to not use the deprecated classes.
> > >
> > > Thanks,
> > > Biju
> > >
> >
>

Re: HTableDescriptor

Posted by Biju N <bi...@gmail.com>.
Thanks Ted for the quick response. Looked at the code in "master" branch
and seems to have the return type as HTableDescriptor. Probably I am
looking at the wrong branch?

https://github.com/apache/hbase/blob/master/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java#L200

https://github.com/apache/hbase/blob/master/hbase-client/src/main/java/org/apache/hadoop/hbase/client/Table.java#L69

On Mon, Jun 19, 2017 at 11:33 PM, Ted Yu <yu...@gmail.com> wrote:

> I guess in branch-2, this is to keep backward compatibility.
>
> In master branch, TableDescriptor should be returned from these two
> methods.
>
> On Mon, Jun 19, 2017 at 8:27 PM, Biju N <bi...@gmail.com> wrote:
>
> > Hi There,
> >    From the docs. HTableDescriptor is deprecated and will be removed from
> > 3.0. But both client.Table#getTableDescriptor and
> > client.Admin#getTableDescriptor returns HTableDescriptor object. Is
> there
> > a
> > reason why these methods return the deprecated type? Looking to change
> code
> > from prior versions to not use the deprecated classes.
> >
> > Thanks,
> > Biju
> >
>

Re: HTableDescriptor

Posted by Ted Yu <yu...@gmail.com>.
I guess in branch-2, this is to keep backward compatibility.

In master branch, TableDescriptor should be returned from these two methods.

On Mon, Jun 19, 2017 at 8:27 PM, Biju N <bi...@gmail.com> wrote:

> Hi There,
>    From the docs. HTableDescriptor is deprecated and will be removed from
> 3.0. But both client.Table#getTableDescriptor and
> client.Admin#getTableDescriptor returns HTableDescriptor object. Is there
> a
> reason why these methods return the deprecated type? Looking to change code
> from prior versions to not use the deprecated classes.
>
> Thanks,
> Biju
>