tranch-xiao/php-thrift-impala
最新稳定版本:v0.1.2
Composer 安装命令:
composer require tranch-xiao/php-thrift-impala
包简介
PHP Thrift Client for Impala and Hive Queries
README 文档
README
This project based Automattic/php-thrift-sql.
Currently the following engines are supported:
- Hive -- Over the HiveServer2 Thrift interface, SASL is enabled by default so username and password must be provided however this can be turned off with the
setSasl()method before callingconnect(). - Impala -- Over the Impala Service Thrift interface which extends the Beeswax protocol.
Usage Example
// Load this lib require_once __DIR__ . '/vendor/autoload.php'; // Try out an Impala query $impala = new \ThriftSQL\Impala( 'hd-node1' ); $impalaTables = $impala ->connect() ->queryAndFetchAll( 'SHOW TABLES' ); print_r( $impalaTables ); // Don't forget to clear the client and close socket. $impala->disconnect();
统计信息
- 总下载量: 509
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2015-07-24