hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chen Song <chen.song...@gmail.com>
Subject Re: the php client seems to be broken
Date Wed, 23 Apr 2014 18:02:57 GMT
I am also experiencing this syntactical issue in
/usr/lib/hive/lib/php/packages/hive_service/ThriftHive.php. Anyone knows
how to fix this?

[Wed Apr 23 16:23:23 2014] [error] [client 127.0.0.1] PHP Parse error:
 syntax error, unexpected ';', expecting T_STRING or T_NS_SEPARATOR or '{'
in /usr/lib/hive/lib/php/packages/hive_service/ThriftHive.php on line 2

The first few lines in php file reads as

<?php
namespace ;
/**
 * Autogenerated by Thrift Compiler (0.9.0)
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated
 */


On Mon, Mar 17, 2014 at 6:03 PM, Jeremy <jking@kickbackpoints.com> wrote:

>  I have been researching for a week now on how to use the PHP hive client.
> https://cwiki.apache.org/confluence/display/Hive/HiveClient#HiveClient-PHP
> but the $GLOBALS['THRIFT_ROOT'] = '/lib/php/'; is broken. one thing is
> the autoloader is no generated properly. second
> packages/hive_service/ThriftHive.php' has namespace; at the top so a
> namesapce is not even defined.
> Third if I just start indlucing files instead of using the autoloader I
> get error " Fatal error: Class 'Thrift\Exception\TException' not found in
> /lib/php/packages/hive_metastore/metastore/Types.php on line 4891" even
> though the file is included.
>
> Any one know how to resolve these issues?
>
>
>
> On 03/17/2014 11:45 AM, Jeremy wrote:
>
> I am trying to use the php hive thift client and there is name space and
> autoload issues.
> Autoload is not generated and I have not found any instructions how to
> properly generate it.
> Also some files contain namespace; which is a syntax issue.
> Is any one aware of these issues and know how to fix them?
>
>
>
>
>


-- 
Chen Song

Mime
View raw message