Questions tagged [thrift-protocol]

The protocol family used by the cross-platform, crosss-language Apache Thrift RPC and serialization framework

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.

169 questions
2
votes
1 answer

Couldn't find org.apache.thrift7.TBase class

I am getting error while executing the topology using the following maven command : mvn exec:java -Dexec.mainClass="com.test.newpackage.TopologyMain" -Dexec.args="resource/words.txt" If i try using following command : java -cp…
Naresh
  • 5,073
  • 12
  • 67
  • 124
2
votes
0 answers

Apache Thrift Tutorial Error

I've been trying to learn to use Apache Thrift in python by following this tutorial: http://www.billdimmick.com/devjournal/building-an-apache-thrift-service-in-python.html. The thrift file used for this tutorial is: namespace py demo service…
2
votes
0 answers

Thrift - Scala to Php( unable to retrieve data from database dynamically)

I developed a Scala project with Neo4j embedded as database. I used Thrift service to call the Scala functions from Php files. Am am able to insert data into the Neo4j database by calling Scala functions from Php files using Thrift. But the problem…
yAsH
  • 3,367
  • 8
  • 36
  • 67
2
votes
2 answers

Debugger for Thrift?

I'm looking for a tool that can sniff, throttle and modify the messages over Thrift. Something very similar to Charles Web Proxy for Web development. Is there such a thing?
beatak
  • 9,185
  • 10
  • 33
  • 42
2
votes
2 answers

Thrift server is really slow for simple operation

I'm running a simple Thrift server (http://thrift.apache.org/) as a cross-language platform between Python (the server) and Haskell (the client). The only data structure that needs to be sent across is a 3-tuple of doubles, so the server/client…
Tetigi
  • 584
  • 1
  • 6
  • 20
2
votes
1 answer

Non-blocking Thrift-Server with Django

I need to access data coming from a Django webapp via a Thrift interface. I'd like to do this in a non-blocking way (eg. using libevent/gevent...) but there aren't many example implementations (in python) around, so I'd like ask here for any…
Bernhard Vallant
  • 49,468
  • 20
  • 120
  • 148
2
votes
2 answers

load balancing thrift traffic

I have a client/server architect design based on thrift. Does anybody have experience on how to load balance thrift based services? I am looking for some load balancing approaches allowing me to even apply some algorithm, eg. round-robin, weighted…
Shengjie
  • 12,336
  • 29
  • 98
  • 139
1
vote
1 answer

Thrift service for PHP based Thrift Client

I have downloaded thrift .tar file and took lib/php/src folder and I renamed it as thrift . Then in my PHP file to write PHP Thrift Client , I have following code:
Hafiz
  • 4,187
  • 12
  • 58
  • 111
1
vote
1 answer

PHP client to communicate with Apache Thrift API

I am a PHP developer, working on a site that will be communicating with another server with Apache Thrift API, so I want to know that is there some existing class or some way that I can use to communicate with Thrift API in PHP. I saw example…
Hafiz
  • 4,187
  • 12
  • 58
  • 111
1
vote
1 answer

Dump apache thrift messages for debugging purposes?

Apache Thrift is one of the more popular choices for an opensource RPC frameworks (gRPC is also one that gets lot of tracktion since release into the open). In my setup in c++ Im using a TMultiplexedProcessor. I guess this could be any TProcessor…
darune
  • 10,480
  • 2
  • 24
  • 62
1
vote
1 answer

Apache Thrift proxy for filtering requests

I am trying to build a Thrift proxy, with Apache Thrift, to filter some requests directed to a Thrift server. The flow should be like Thrift Client <-> Proxy <-> Thrift Server for all RPC calls. Basically the Thrift server binds to some services…
Davide
  • 55
  • 1
  • 13
1
vote
1 answer

Whats the difference between THsHaServer and TNonblockingServer?

Whats the difference between those two ? And where do I find a good doc about what is what ? I went through their JavaDoc, and it doesn't explain a lot of questions [ which I am going to haunt you guys with :) ]
Shrinath
  • 7,888
  • 13
  • 48
  • 85
1
vote
1 answer

Can I return a list of maps in thrift?

I am trying to return a array of hashmaps from Java to php. What I want in php is this : Array : [0] => ['abc'] = "blah blah abc" ['def'] = "blah blah def" ['ghi'] = "blah blah ghi" [1] => ['abc'] = "blah blah pqr" ['def'] = "blah blah…
Shrinath
  • 7,888
  • 13
  • 48
  • 85
1
vote
2 answers

Apache Thrift warning "No seqid to unset" (NodeJS)

"[WARN] No seqid to unset" What are the reasons for this warning? (NodeJS)
1
vote
0 answers

Standard serialization protocol to serialize set of objects to disk

I am looking for standard protocol that provides ability to serialize set of object (same type) to a file, but also provide easy way to align to object boundary if reader/de-serializer start reading from random byte offset. After googling I found…