Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/griffinqiu/php-impala

A namespaced build of PHP Impala library made with Thrift
https://github.com/griffinqiu/php-impala

Last synced: 19 days ago
JSON representation

A namespaced build of PHP Impala library made with Thrift

Awesome Lists containing this project

README

        

Steps

* Copy the common/thrift directory from the cloudera/impala git project
* wget https://raw.github.com/cloudera/hive/cdh4.3.0-release/metastore/if/hive\_metastore.thrift
* wget https://raw.github.com/cloudera/hue/cdh4.3.0-release/apps/beeswax/thrift/include/fb303.thrift
* wget https://github.com/colinmarc/impala-ruby/raw/fbfb4f57266d9d9f9199ccdee14ce83b16d07ee4/thrift/Opcodes.thrift
* Modify the include in hive\_metastore.thrift to just be 'fb303.thrift'
* Namespace everything with 'namespace php ...'
* for x in thrift/\*.thrift; do thrift -gen php -out lib $x; done
* cp ~/src/thrift/lib/php/lib/Thrift/ lib/Thrift -r

With inspiration and help from
[php\_impala\_phar](https://github.com/rmcfrazier/php_impala_phar)

Thrift things that needed to be fixed:

1. function echo
2. GLOBAL keyword