You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Chen Song <ch...@gmail.com> on 2014/05/06 05:24:07 UTC
php thrift client for hiveserver2
I am using CDH5 with hive 0.12.0.
I dig a bit myself in internet but could not find sample php code to
connect to hiveserver2. I know there are php files generated by thrift but
they seem broken, as shown below.
php -l /usr/lib/hive/lib/php/packages/hive_service/TCLIService.php
PHP Parse error: syntax error, unexpected ';', expecting T_STRING or
T_NS_SEPARATOR or '{' in
/usr/lib/hive/lib/php/packages/hive_service/TCLIService.php on line 2
Parse error: syntax error, unexpected ';', expecting T_STRING or
T_NS_SEPARATOR or '{' in
/usr/lib/hive/lib/php/packages/hive_service/TCLIService.php on line 2
Errors parsing /usr/lib/hive/lib/php/packages/hive_service/TCLIService.php
Is php thrift no longer supported by hiveserver2?
Chen