hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niels Basjes <Ni...@basjes.nl>
Subject Re: How to generate thrift classes ?
Date Sat, 18 Jul 2015 19:50:17 GMT
Or to put it simply have a look at the documentation I wrote for that:
http://hbase.apache.org/book.html#build.thrift

You can simplify it to: mvn compile -Pcompile-thrift

Niels Basjes

On Sat, Jul 18, 2015 at 4:57 PM, Ted Yu <yuzhihong@gmail.com> wrote:
> Ashish:
> Please take a look at HBASE-12272
>
> I tried the following commands:
>
>  2120  mvn install -DskipTests
>  2122  mvn compile -Pcompile-thrift -Dthrift.version=0.9.0
>
> Cheers
>
> On Fri, Jul 17, 2015 at 6:12 AM, ramkrishna vasudevan <
> ramkrishna.s.vasudevan@gmail.com> wrote:
>
>> Sorry forgot to attach the link
>>
>> http://wiki.apache.org/hadoop/Hbase/ThriftApi
>>
>> Regards
>> Ram
>>
>> On Fri, Jul 17, 2015 at 6:04 PM, ramkrishna vasudevan <
>> ramkrishna.s.vasudevan@gmail.com> wrote:
>>
>> > Hi Ashish
>> >
>> > I have tried adding thrift files for some cases while doing Tags and
>> > visibility labels.
>> > Pls take a look at this link for reference - may be it is obselete but
>> > could be helpful.
>> >
>> > Take a look at HBASE-9884 for the sample case.
>> >
>> > It is like the protobuf changes that we do.  We will have the
>> hbase.thrift
>> > file under
>> > \hbase\hbase-thrift\src\main\resources\org\apache\hadoop\hbase\thrift.
>> >
>> > You need to download a thrift complier as suggested in the link above.
>> > Once you make the change you need to use the thrift exe to generate the
>> > files.
>> > Once generated you to change the Thrift packages which will be using
>> these
>> > generated java files.  I need to check in your case what changes would be
>> > coming in the thrift side. Let me know if you need more information.
>> >
>> > Regards
>> > Ram
>> >
>> > On Fri, Jul 17, 2015 at 5:07 PM, Ashish Singhi <
>> > ashish.singhi.apache@gmail.com> wrote:
>> >
>> >> Hi devs.
>> >>
>> >> I want to remove Iface#getRowOrBefore api as part of HBASE-13954. The
>> doc
>> >> on top of the class says "Autogenerated by Thrift Compiler (0.9.0)". So
>> I
>> >> think, I should not remove it manually there should be some way to
>> >> generate
>> >> this class.
>> >>
>> >> Can any one please explain me how to generate thrift classes ?
>> >>
>> >> Regards,
>> >> Ashish
>> >>
>> >
>> >
>>



-- 
Best regards / Met vriendelijke groeten,

Niels Basjes

Mime
View raw message