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
0
votes
2 answers

Apache thrift multi client server

I am writing simple chat in Qt + Apache Thrift but right now I need to face a problem with connecting multiple clients. On first sight everything looks good and I cannot find where the problem is. Here is my server main.cpp: int main(int argc, char…
gawron103
  • 167
  • 6
  • 21
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

Encoding Lists in Thrift (Python)

I'm wondering what's the best way to binary encode a list of structs with ThriftPy. The only way I've found is to create another wrapper struct and remove the binary prefix/suffix from the stream but this is very hacky and there should definitely be…
neverlastn
  • 2,164
  • 16
  • 23
0
votes
1 answer

Implementing a Server/Client with HTTP protocol with Apache Thrift

I'm new to apache thrift. I wanted to use it to help me implement a server that accepts input from a client, parse it and based on that direct it to the proper function which in turn would return a response for that specific request. For…
JJ Adams
  • 481
  • 4
  • 17
0
votes
2 answers

Thrift Debugging: Problems with my finagle server

I have a simple Thrift Server, implemented in scala with finagle: import com.twitter.util.{ Await, Future } import com.jakiku.thriftscala.{ RealTimeDatabasePageImpressions, PageImpressions } import com.twitter.finagle.Thrift import…
Citrullin
  • 2,269
  • 14
  • 29
0
votes
0 answers

Exception on WSO2 CEP 3.1

i deploy wso2 cep on linux and success into login . i created agents for calling input event adaptor, i got an errors. org.wso2.carbon.databridge.agent.thrift.exception.AgentException: Cannot borrow client for…
youngwoo
  • 11
  • 3
0
votes
1 answer

Apache Thrift java minimum requirement

Apache Thrift page suggests minimum java version requirement as 1.7 . My app uses java version 1.6.95. Still I was able to compile and use apache thrift. Anyone has any idea about what this minimum version requirement is for?
0
votes
1 answer

Which Data Type is most appropriate for datetime in thrift communication in c++?

In thrift communication I need to send Date and Time from client to server. so which datatype will be most appropriate. My Client is in C++ and Server is in C-Sharp. and in Server I am using DateTime keyword for doing this task. but Confused about…
0
votes
1 answer

For which purposes used seqid in Apache Thrift?

I am investigating how to work Apache Thrift library and found that any send/receive operation uses seqid variable. But it always set to zero and I didnt find any place where it change or use. Its very strange. Does everyone know for which purposes…
AeroSun
  • 2,401
  • 2
  • 23
  • 46
0
votes
1 answer

Mixed load cassandra-stress test

Need some help regarding cassandra stress testing. I have installed the cassandra-stress 2.1 tool from datastax website. I want to do Read+Write stress testing in the ratio of 10:1 and using 15 threads. I somehow cant get it to work. I am able to…
0
votes
1 answer

Can field tags be dropped from protobuf/thrift messages?

I understand that protobuf/thrift needs unique numerical field tags to provide version compatibility. They provide version compatibility by serializing messages (kind of) in this fashion: ... When deserializing, they…
Santa Zhang
  • 884
  • 8
  • 13
0
votes
1 answer

Apache Thrift C++ typedef issue

I'm trying to create a simple thrift server that multiplies two numbers. I've written the thrift file like this: namespace cpp tutorial typedef i32 int service MultiplicationService { int multiply(1:int n1, 2:int n2), } After that I've ran…
Vincent
  • 3
  • 3
0
votes
1 answer

Strange behaviour of Apache Thrift deserialization in .Net

I use Apache Thrift in my applications to exchange data betwean several machines. I recive data from outspace, create transport, protocol and deserialize recived data into object. Here is my code: using (var memoryStream = new MemoryStream(data)) …
ArhiChief
  • 240
  • 2
  • 13
0
votes
1 answer

TApplicationException: Required field 'client_protocol' is unset

I am developing a thrift client, I have build a thrift hive server(apache-hive-0.14.0) on my machine and am also have access to Cloudera Dist Hive 4.6.0 When i connect thrift client to CDH client give following error: TApplicationException: Required…
0
votes
1 answer

Building Apache Thrift in Redhat and Fedora

I want to use Apache Thrift in Redhat and Fedora . Are there some known issues in using it in these platforms as the doc says only CentOS and Ubuntu
Prashant
  • 115
  • 1
  • 10