spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From أنس الليثي <dev.fano...@gmail.com>
Subject Re: Connection PHP application to Spark Sql thrift server
Date Sun, 08 Mar 2015 05:53:56 GMT
Sorry for late reply.

I have tried to connect to the hive server instead of the spark sql but the
same exception is thrown in the hive server logs.

The only difference is the hive log has a little more information than the
spark sql logs. The hive server logs has this message "TTransportException
: invalid status -128".

This is the only difference between the two logs.

Thanks

On 5 March 2015 at 16:15, Cheng, Hao <hao.cheng@intel.com> wrote:

> Can you query upon Hive? Let's confirm if it's a bug of SparkSQL in your
> PHP code first.
>
> -----Original Message-----
> From: fanooos [mailto:dev.fanooos@gmail.com]
> Sent: Thursday, March 5, 2015 4:57 PM
> To: user@spark.apache.org
> Subject: Connection PHP application to Spark Sql thrift server
>
> We have two applications need to connect to Spark Sql thrift server.
>
> The first application is developed in java. Having spark sql thrift server
> running, we following the steps in  this link <
> https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients#HiveServer2Clients-JDBC
> >
> and the application connected smoothly without any problem.
>
>
> The second application is developed in PHP. We followed the steps provided
> in  this link <
> https://cwiki.apache.org/confluence/display/Hive/HiveClient#HiveClient-PHP
> >
> .  When hitting the php script, the spark sql thrift server throws this
> exception.
>
> 15/03/05 11:53:19 ERROR TThreadPoolServer: Error occurred during
> processing of message.
> java.lang.RuntimeException: org.apache.thrift.transport.TTransportException
>         at
>
> org.apache.thrift.transport.TSaslServerTransport$Factory.getTransport(TSaslServerTransport.java:219)
>         at
>
> org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:189)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:744)
> Caused by: org.apache.thrift.transport.TTransportException
>         at
>
> org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132)
>         at
> org.apache.thrift.transport.TTransport.readAll(TTransport.java:84)
>         at
>
> org.apache.thrift.transport.TSaslTransport.receiveSaslMessage(TSaslTransport.java:182)
>         at
>
> org.apache.thrift.transport.TSaslServerTransport.handleSaslStartMessage(TSaslServerTransport.java:125)
>         at
> org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:253)
>         at
>
> org.apache.thrift.transport.TSaslServerTransport.open(TSaslServerTransport.java:41)
>         at
>
> org.apache.thrift.transport.TSaslServerTransport$Factory.getTransport(TSaslServerTransport.java:216)
>         ... 4 more
>
>
> I searched a lot about this exception but I can not figure out what is the
> problem.
>
>
>
> --
> View this message in context:
> http://apache-spark-user-list.1001560.n3.nabble.com/Connection-PHP-application-to-Spark-Sql-thrift-server-tp21925.html
> Sent from the Apache Spark User List mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@spark.apache.org For additional
> commands, e-mail: user-help@spark.apache.org
>
>


-- 
Anas Rabei
Senior Software Developer
Mubasher.info
anas.rabei@mubasher.info

Mime
View raw message