Giter Site home page Giter Site logo

php-thrift-hive-client's Issues

'TException' with message 'TSocket: Could not connect to localhost:10000

Dear @garamon

I've installed hadoop, hive and apache thrift in my system . I cloned this repository and placed at my apache folder (/var/www) when i open this file .. its showing me blank page . When i run this from command line its showing me following error.

root@aaryan-pc:/usr/share/nginx/www/php-thrift-hive-client# php sample.php 
PHP Fatal error:  Uncaught exception 'TException' with message 'TSocket: Could not connect to localhost:10000 (Connection refused [111])' in /usr/share/nginx/www/php-thrift-hive-client/lib/transport/TSocket.php:191
Stack trace:
#0 /usr/share/nginx/www/php-thrift-hive-client/ThriftHiveClientEx.php(35): TSocket->open()
#1 /usr/share/nginx/www/php-thrift-hive-client/sample.php(13): ThriftHiveClientEx->open()
#2 {main}
  thrown in /usr/share/nginx/www/php-thrift-hive-client/lib/transport/TSocket.php on line 191

My Environment :

OS : Ubuntu 12.04 LTS Precise 32-bit
server: Apache
Installed : Hadoop , Hive , Apache Thrift

Please help me to fix this issue

this lib doesn't work with HiveServer2

Just to avoid others effort to try out: this lib doesn't work with HiveSever2 for me.
I succeeded with another one "hive-hs2-php-thrift-master" which you may find in github.
good luck.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.