Benabra
Benabra

Reputation: 309

Generating PHP Thrift files on HBase Amazon EMR

I installed Apache Thrift on a running HBase (v 0.92 which is provided by default by amazon) cluster (I followed the official tutorial), but when I arrive at the point where I need to generate the required php files (thrift --gen php hbase.thrift), I can't find the hbase.thrift file anywhere.

Upvotes: 1

Views: 444

Answers (3)

Allen211
Allen211

Reputation: 69

On AWS EMR, you can find the hbase1.thrift and hbase2.thrift with the follow way:

[hadoop@ip-10-232-13-248 ~]$ sudo find / -name thrift
/usr/lib/hbase/include/thrift
/usr/lib/hbase/hbase-webapps/thrift
[hadoop@ip-10-232-13-248 ~]$ cd /usr/lib/hbase/include/thrift
[hadoop@ip-10-232-13-248 thrift]$ ls
hbase1.thrift  hbase2.thrift

Upvotes: 0

Oussama Jilal
Oussama Jilal

Reputation: 7739

You can download the Hbase.thrift file from here.

Upvotes: 1

smertrios
smertrios

Reputation: 3495

The hbase thrift idl (Hbase.thrift) is packaged with the hbase source and located in:

src/main/resources/org/apache/hadoop/hbase/thrift/Hbase.thrift

Upvotes: 0

Related Questions