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

Is there any RPC framework with signal functionality as in DBus?

We are currently looking for RPC frameworks and were unable to find any with signal functionality unfortunately however we need it. We looked at gRPC, Apache Thrift, Cap-n-Proto and found that no one of them provide such functionality out of the box…
VP.
  • 15,509
  • 17
  • 91
  • 161
7
votes
1 answer

How to ensure thrift objects are backward compatible?

We're currently using thrift for developing our micro-services. When I recently came across this below issue. Assume below is the thrift contract for Summary Object and there is an API which gets and updates summary using the summary object…
Kishore Bandi
  • 5,537
  • 2
  • 31
  • 52
7
votes
1 answer

HiveServer2: Thrift SASL related exception when using custom PasswdAuthenticationProvider

I've created a custom implementation of the PasswdAuthenticationProvider interface, based on OAuth2. I think the code is irrelevant for the problem I'm experiencing, nevertheless, it can be found here. I've configured hive-site.xml with the…
frb
  • 3,738
  • 2
  • 21
  • 51
7
votes
1 answer

Thrift include two files with same name?

I have this structure: (namespace is java) package/common.thrift common.thrift fileA.thrift I want fileA.thrift to include both common.thrift include ".../package/common.thrift" include "common.thrift" struct A { 1: common.Something something…
phoenix
  • 717
  • 1
  • 8
  • 26
7
votes
1 answer

In Apache Spark SQL, How to close metastore connection from HiveContext

My project has unit tests for different HiveContext configurations (sometimes they are in one file as they are grouped by features.) After upgrading to Spark 1.4 I encounter a lot of 'java.sql.SQLException: Another instance of Derby may have already…
tribbloid
  • 4,026
  • 14
  • 64
  • 103
7
votes
2 answers

Add columns dynamically in cassandra

I have a table like this in CQL3 create table product_info ( key text, value text, Primary key (key) ); It is a vertical table . Since I can insert new rows with (key , value ) pair. Sample data will be : product_info key | …
Sujith PS
  • 4,776
  • 3
  • 34
  • 61
7
votes
1 answer

Apache Thrift maximum message size

We are using Apache Thrift to exchange messages between two systems. In one of the message we are exchanging a list (c++) which can become huge in size. Can you please let me know what is the maximum message size we can exchange using Apache…
user1732768
  • 81
  • 1
  • 4
7
votes
3 answers

Making Thrift calls from a C++ app in Windows

As the title says, I have a Windows app written in C++ from which I need to make calls to remote Thrift services, and I'm a bit lost on the subject, to be honest. http://wiki.apache.org/thrift/ThriftInstallationWin32 states that "The Thrift C++…
korona
  • 2,308
  • 1
  • 22
  • 37
7
votes
1 answer

Thrift.Transport.TTransportException: Cannot write to null outputstream

I'm doing some work with Cassandra and the Thrift libraries. I realize these are very early libraries and will (undoubtedly) change at some point. I've been using the following link for help with setting up my C# code to write and read to and from…
karlgrz
  • 14,485
  • 12
  • 47
  • 58
7
votes
2 answers

Convert an object to a JSON string with thrift json serialization

I'm new to the thrift. I need to convert my data object to a JSON string with Thrift JSON serialization. I tried in this way. TSerializer serializer = new TSerializer(new TSimpleJSONProtocol.Factory()); String json =…
Shashika
  • 1,606
  • 6
  • 28
  • 47
7
votes
1 answer

Thrift - converting from simple JSON

I created the following Thrift Object: struct Student{ 1: string id; 2: string firstName; 3: string lastName } Now I would like to read this object from JSON. According to this post this is possible So I wrote the following…
danny.lesnik
  • 18,479
  • 29
  • 135
  • 200
7
votes
5 answers

Any success using Apache Thrift on iPhone?

Has anybody done or seen a deployment of Apache Thrift in an iPhone app? I am wondering if is a reasonable solution for a high-volume, low(er)-latency network service for iPhones compared to HTTP. One noteworthy thing I found is a bug report about…
JasonSmith
  • 72,674
  • 22
  • 123
  • 149
7
votes
1 answer

How do I install and use Scrooge

I want to write a Thrift service using Scrooge. Thrift has almost no documentation and Scrooge has even less. How do I install Scrooge on an Ubuntu or OSX machine? Once installed, and I have created a .thrift, how do I use Scrooge to generate server…
Eric Hartford
  • 16,464
  • 4
  • 33
  • 50
7
votes
3 answers

how to represent date type in apache thrift

I'm developing a service using apache thrift and I need to define periods of time. Dates are significant (YYYY-mm-dd) and time should be totally omitted (HH:ii:ss). I couldn't find any specific date/datetime thrift data type so I'm thinking about…
ducin
  • 25,621
  • 41
  • 157
  • 256
7
votes
2 answers

Change Helenus Consistency Level in CQL query

I'm doing some tests with Cassandra and its Node.JS Driver, Helenus. Is there any way to change the Consistency Level of a query, using CQL? Helenus documentation only shows an example of doing this using the Helenus Thrift connector, but I want to…
Elisiário Couto
  • 139
  • 1
  • 12