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

thrift description file form existing java classes

there is a way to generate thrift description file for existing java classes using refletion? Avro has that feature, but i need to use thrift and i have a lot of existing business class in java that i need to serialize in c++ and java.
Claudio Bisegni
  • 103
  • 2
  • 9
1
vote
0 answers

How can I use cookie with http Thrift?

So, I'm communicating with the server using THttpClient of Thrift. The server is already sending the set-cookie header, but I was not sure on how to extract that from the response (in client side), and send back that cookie as the header of the…
1
vote
0 answers

How to get Hive Thrift Protocol version?

I'm always getting the following Error on Apache Hive Server2 when trying to connect to it using Beeline or Apache Hue: Sep 01, 2017 2:20:50 INFO: 17/09/01 14:20:50 ERROR TThreadPoolServer: Thrift error occurred during processing of message. Sep…
tribbloid
  • 4,026
  • 14
  • 64
  • 103
1
vote
1 answer

What serialization framework does Apache Thrift use?

What serialization framework does Facebook's Apache Thrift use in a Java environment? Java built-in serialization or Kryo, or something else? EDIT: I see that Thrift has a class called TSerializer which seems to implement TBase which implements…
nikk
  • 2,627
  • 5
  • 30
  • 51
1
vote
0 answers

How to broken jvm parameter count limit?

My project use thrift service but it can't allow generate more then 254 APIs. With the compile error: Platform restriction: a parameter list's length cannot exceed 254. It seems jvm not allow over 254 parameter. How to broken the limit ? thanks
LoranceChen
  • 2,453
  • 2
  • 22
  • 48
1
vote
1 answer

How to decode Application/x-thrift from http stream?

Request Header: POST https://gfp.line.naver.jp/P3 HTTP/1.1 Host: gfp.line.naver.jp Connection: keep-alive Content-Length: 180 Origin: null X-LAL: en X-LCS: xxx== X-LHM: POST Content-Type: application/x-thrift X-LST: 260000 …
Newbie123
  • 123
  • 1
  • 2
  • 13
1
vote
0 answers

Proper Lifecycle of Python Thrift Client Transport

What is the best practice for lifecycle of a transport? I'm finding that opening a transport per call is not effective. In particular the below code seems to spend ~5 seconds opening up the transport then ~300ms per call for my actual service…
bearrito
  • 2,217
  • 1
  • 25
  • 36
1
vote
1 answer

Better way to de/serialize an Thrift object from/to JSON using the pure Javascript library?

I have a web server returning an thrift object serialized used the JSON protocol to a client html page using the pure Javascript Thrift library (thrift.js). The server for example: from MyThriftFile.ttypes import ThriftClass from thrift import…
10cool
  • 131
  • 1
  • 7
1
vote
1 answer

where to find cassandra.thrift file?

i am trying to use apache thrift to connect cassandra by PHP. after i followed these steps, finally i run this command: thrift -gen php interface/cassandra.thrift but an error occured : [FAILURE:arguments:1] Could not open input file with realpath:…
mst
  • 466
  • 5
  • 17
1
vote
1 answer

Apache Thrift: Communicating from Java Client to Python Tornado Server

I have a fairly straightforward Thrift IDL (split into two files as shown): core.thrift namespace cpp MyProduct.Core namespace java com.mycompany.myproduct.core namespace py myproduct.core /** * Struct used to indicate a location referenced by…
balajeerc
  • 3,998
  • 7
  • 35
  • 51
1
vote
1 answer

Fail to open thrift connection to Cassandra node via spark-cassandra-connector

I've been struggling the all day and didn't find a solution. I'm trying to connect a remote Cassandra node via a Spark Streaming application, using the spark-cassandra connector and the application exists with an exception. Any help would be much…
1
vote
2 answers

How do you use Thrift protocol via corporate Proxy?

I've had a search over the internet but can't seem to find any straightforward instructions on how to use the Thrift protocol from behind a proxy. To give you a bit of background - we have a Zipkin instance setup (https://github.com/twitter/zipkin)…
James Murphy
  • 800
  • 1
  • 15
  • 29
1
vote
1 answer

How to create own thrift language-templates for custom language in thrift-compiler?

i'd like to use Thrift as RPC-Protocol to call Java-Server RPC-Endpoints from a custom, proprietary closed-source language. (some c-like vendor-specific scripting language) No bindings for this exist. How can i create my own thrift-compiler-plugins…
crushervx
  • 587
  • 1
  • 7
  • 18
1
vote
1 answer

Thrift can not deserialize from json to java object

I generated a java object from the following thrift object: struct Account { 1: required string accountType, 2: bool accountActive, } I wrote a java code trying to serialize java object to json string and then deserialize the json string…
dereck
  • 499
  • 1
  • 10
  • 20
1
vote
1 answer

Thrift list as a mutable type

As taken from the thrift website's documentation, a thrift list is "an ordered list of elements. Translates to an STL vector, Java ArrayList, native arrays in scripting languages, etc." Why are these lists expressed as mutable types? Doesn't this…
eatonphil
  • 13,115
  • 27
  • 76
  • 133