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
1
vote
1 answer

Problems running Thrift C# Tutorial

I am new to and need to understand the nuts / bolts of the Thrift RPC framework. For this purpose I have downloaded the Calculator tutorial (consisting of a client and server). I thought this would be the best way to understanding whats going on…
Romi24
  • 271
  • 2
  • 7
  • 15
1
vote
1 answer

Thrift: Serialize + Deserialize changes object

I have a thrift struct something like this: struct GeneralContainer { 1: required string identifier; 2: required binary data; } The idea is to be able to pass different types of thrift objects on a single "pipe", and still be able to…
Aman
  • 639
  • 1
  • 9
  • 25
0
votes
1 answer

How to get the client information in Python Thrift server?

I have python Thrift server which is using TThreadPoolServer. My question is to how to get the client information in one of the server service routine? One way is to passed the client info while invoking the service from the client side (i.e. one of…
Mukund
  • 1
0
votes
1 answer

Convert between TProtocols

I'd like to convert from TBinaryProtocol to TSimpleJSONProtocol, so that I can display a recorded stream of binary thrift requests in a more human-readable fashion. I'm particularly interested in the service requests in the stream, so using the…
Stuart
  • 3
  • 3
0
votes
1 answer

PHP based thrift API client like thirft.apache.org example client in python

I want to write PHP based thrift API client like thirft.apache.org example client in python at: http://thrift.apache.org/ I write this code: //A struture $up = UserProfile($uid=1, $name="Mark Slee", …
Hafiz
  • 4,187
  • 12
  • 58
  • 111
0
votes
0 answers

eBPF sk_skb programs lead to connection issues for Thrift RPCs

Edit: The service I was using, uses Thrift as the rpc framework. It turns out that Thrift RPCs have a problem with SK_SKB messages. Using the CPP Tutorial from thrift repo also fails when a SK_SKB program is loaded. It fails with a THRIFT_EAGAIN…
diviquery
  • 569
  • 5
  • 19
0
votes
1 answer

Is there thrift support for alias

This question is similar to Is it possible to define an alias for type (enum or message) in google protobuf? But I want to know if thrift supports similar function. I couldnt find any such in documentation. I want to write something like the…
footy
  • 5,803
  • 13
  • 48
  • 96
0
votes
0 answers

Apache Thrift Server Load Testing

I have created Apache Thrift server using Node JS, but i have to provide load test results on hoiw much concurrent users and how much concurrent requests can Apache thrift server handles per second.How can i perform this load testing.?
Vishwanath.M
  • 6,235
  • 11
  • 42
  • 56
0
votes
0 answers

Thrift client type cannot be resolved c++

I'm hoping to reuse an opened thrift connection to send/recieve multiple messages/responses over the duration of a session. The client is created in the file Client.h #include #include #include…
0
votes
1 answer

Access to Hbase over Thrift with Knox

Hbase has a couple of wrapper services that help access it. They are Thrift and Rest services. We are using Apache Knox to access these services. We can use Knox WEBHBASE service to access Hbase via Rest. The question is: how can I use Knox to…
Andrew Saushkin
  • 187
  • 2
  • 11
0
votes
0 answers

How to generate Apache Thrift protocol outside source code (but in obj folder like Grpc.Tool)?

I would like to generate the Apache Thrift protocol outside of source folder like the package Grpc.Tools make (generate the protocols files in obj folder) to conserve a clean structure. I develop in C#. I searched on the official documentation,…
0
votes
1 answer

is it able to directly use socket() API in server while use thrift lib in client?

Is it able to directly use socket() API in server while use thrift lib in client? As directly use the API include socket(), write(), etc, there is no Protocol here, directly write a struct. While in client, it use…
gpu
  • 129
  • 10
0
votes
1 answer

How to deserialize using Thrit TBinaryProtocol

I havea thrift file that was serialized with TBinaryProtocol. I want to deserialize this file to read it's content. What's the best approach to do it? I am using thrift: from thrift.TSerialization import serialize from…
0
votes
0 answers

c++ thrift serialize multiple objects to vector only end with the last object result

The code is : std::vector itemDataList; for(int i = 0 ; i<4; i++){ ctr::ZwItem zwItem; zwItem.news = newsList[i]; zwItem.__isset.news = true; boost::shared_ptr buffer(new TMemoryBuffer()); …
L.Maple
  • 111
  • 3
  • 11
0
votes
1 answer

Python Thrift client immediately returning before result can be calculated

I have a Apache Thrift Client in Python which seemed to work fine for all calls except one.. when I perform this one API call .. instead of properly waiting for the result.. it just immediately returns with None what gives? all other API calls have…
Erik
  • 2,782
  • 3
  • 34
  • 64