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

Reply via email to