Skip to content

A simple PHP based client of HiveServer2, based on Thrift

Notifications You must be signed in to change notification settings

hs-llsong/hive-hs2-php-thrift

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Thrift-Based HiveServer2 Connection and Execution Example in PHP

This illustratory example, given the lack of a sasl-enabled TSaslTransport in Apache Thrift's PHP libraries, will only work with HiveServer2s that have their hive.server2.authentication configuration set to NOSASL.

Program sources are in HS2Client.php

Dependencies (Thrift libs, and Hive I/F) are under thrift/ and hive/

Namespace (php) modified thrift spec for Hive I/F is under hive-spec

Running

git clone [email protected]:QwertyManiac/hive-hs2-php-thrift
cd hive-hs2-php-thrift
php HS2Client.php

(This should work for mostly any CDH version cluster)

About

A simple PHP based client of HiveServer2, based on Thrift

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 84.5%
  • Thrift 15.5%