Questions tagged [thrift]

Thrift is a software framework for scalable cross-platform, cross-language services development available from Apache.

Thrift combines a software stack with a code generation engine to build services that work efficiently and seamlessly between C++, C, Java, Python, PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, Smalltalk, Delphi, Graphviz, Go and OCaml.

Thrift's primary goal is to enable efficient and reliable communication across platforms and programming languages by abstracting the portions of each language that tend to require the most customization into a common library that is implemented in each language.

Originally developed at Facebook, Thrift was open sourced in April 2007 and entered the Apache Incubator in May, 2008. Thrift graduated from the Incubator in October, 2010.

1894 questions
0
votes
2 answers

Integrate thrift implementation of a distributed data system (client, servers) with Raft protocol

So, first of all, sorry for my English. Im not a native speaker. The question is.. I already have a implementation of a Cliente-Server application with distributed data (3 servers) using Thrift. Now (the last phase of the project) is to use some…
0
votes
1 answer

Does boost::shared_ptr close connection once destroyed?

I have a small code snippet that uses Thrift for network communications. int main() { while (true) { boost::shared_ptr socket(new TSocket("localhost", 9090)); boost::shared_ptr transport(new…
duong_dajgja
  • 4,196
  • 1
  • 38
  • 65
0
votes
1 answer

thrift timeout for long run call: thrift.transport.TTransport.TTransportException: TSocket read 0 bytes

I've build some a rpc service using thrift. It may run long time (minutes to hours) for each call. I've set the thrift timeout to 2 days. transport = TSocket.TSocket(self.__host, self.__port) transport.setTimeout(2 * 24 * 60 * 60 * 1000) But the…
jona
  • 329
  • 2
  • 8
0
votes
1 answer

Start and stop hiveserver2

I connect to hive by php thought thrift so I want start hiveserver2 but if I using hive command to start hiveserver2 hive --service hiveserver2 --hiveconf hive.server2.thrift.port=10000 --hiveconf hive.root.logger=INFO,console I always need stop…
0
votes
1 answer

No Thrift TDebugProtocol?

I'm setting up a Thrift server in Java, and I'm trying to set up a TDebugProtocol (mentioned in the Thrift documentation here), but there doesn't seem to be a TDebugProtocol.java file in the protocol folder of the Thrift library. Does this protocol…
Ryan M
  • 101
  • 2
  • 11
0
votes
1 answer

How to get client's IP in a golang thrift server

I'm writing a thrift service in golang and I would like to understand how I can get the client's IP address in the handler functions context. Thanks, Love.
0
votes
1 answer

Can i do crud operation using `apache spark` with php and HBase database in Hadoop cluster

I have an Hbase table and I want to do CRUD operations in real time, and read-write using PHP with Apache Spark? How would I accomplish this?
Jain Hemant
  • 150
  • 2
  • 19
0
votes
1 answer

THttpClient failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request

This is my code in Python to connect to the server which works very well. transport = THttpClient.THttpClient(secureUrl) protocol = TBinaryProtocol.TBinaryProtocol(transport) client = EdenRemote.Client(protocol) transport.open() print "calling…
Abbas
  • 763
  • 1
  • 12
  • 26
0
votes
0 answers

Error using TSSLSocket.obj for Apache Thrift in Visual Studio 2017

I'm trying to use Apache Thrift in a Visual Studio c++ Project (v141 Visual Studio Community 2017). I have followed the instructions from this site http://mohamednadjibmami.com/apache-thrift-for-c-on-visual-studio-2015/ to build the libraries.…
0
votes
0 answers

fbthrift folly/folly/stats/test won't build on Ubuntu 14.04

We installed Ubuntu 14.04. We want to install fbthrift there. We did the git clone of fbthrift. We then did a git checkout of version v2017.06.05.00. We followed the guidance in README.md, and ran the script called ./build/deps_ubuntu_14.04.sh It…
Gordon Fossum
  • 37
  • 2
  • 6
0
votes
0 answers

Cassandra 2.1 OutOfMemory

I have a Cassandra node with 64G ram (16GB heap, G1GC), and occasionally this happens: ERROR [Thrift:74] 2017-06-11 13:20:25,710 CassandraDaemon.java:229 - Exception in thread Thread[Thrift:74,5,main] java.lang.OutOfMemoryError: Java heap space …
rilott
  • 13
  • 5
0
votes
1 answer

Can I add additional field (metadata) to thrift message?

I have generated client and server. I need to add one more field to message in client and read it in server. I think about to decorate TProtocol on client side and TProcessor on server side. E.g.: // Client: TTransport transport = new…
smalafeev
  • 147
  • 3
  • 10
0
votes
0 answers

SCons and Thrift building problems

I need to create C++ app using thrift and build it using SCons. In order to do so I've downloaded and installed all of the needed libs (and ensured that all of them are for x64 Windows) - boost, openssl, libevent. I've built boost with command: b2…
3voC
  • 647
  • 7
  • 19
0
votes
1 answer

Not able to install Impala in Ambari Server

I have installed Ambari server on my CentOS server. I want to read real-time data from Hive so I am trying to install Impala but I am not able install it. I have take reference from following…
Jain Hemant
  • 150
  • 2
  • 19
0
votes
1 answer

Cpp undefined reference to `Apache:: thrift:: transport:: TSocket:: TSocket (std:: string const&, int)'

I have a problem when compiling thrift 0.9.1 cpp code. My makefile like this: objects = genFeaVec_multiThread_HSV.o imgIDservice_types.o ImgIDdifNameService.o genFeaVec_multiThread_HSV_thrift : $(objects) g++ -o genFeaVec_multiThread_HSV_thrift…
timruning
  • 1
  • 1