简体   繁体   中英

Generating PHP Thrift files on HBase Amazon EMR

我在正在运行的 HBase(亚马逊默认提供的 v 0.92)集群上安装了 Apache Thrift(我遵循了官方教程),但是当我到达需要生成所需的 php 文件( thrift --gen php hbase.thrift ),我在任何地方都找不到 hbase.thrift 文件。

您可以从这里下载 Hbase.thrift 文件。

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM