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
8
votes
3 answers

How can I compile all .thrift files (*.thrift) as a Maven phase?

I'm using maven-antrun-plugin to execute a thrift shell command. I can compile one file per with , but I would like to compile all .thrift files in a directory. How can I do this? I tried using
apennebaker
  • 681
  • 2
  • 8
  • 17
8
votes
2 answers

In Apache Thrift How Should Date Objects Be Represented

In the Thrift IDL there isn't a Date type. What's the best cross language mechanism to represent a date object. I think there are 2 ideal candidates but I'd love to hear other ideas. String - in each language you could use something like strftime…
Bryan M
  • 183
  • 1
  • 6
8
votes
1 answer

Kerberos for Thrift?

I have a simple Thrift based java application I have written. It is really very simple, not much more than a "Hello World" message transport using Thrift in java. I have been told that I need to add Kerberos support to my message. I have done…
Wanderer
  • 1,583
  • 4
  • 20
  • 36
8
votes
1 answer

Cmake to autogenerate thrift code

So the only decent example I've found for this is http://grokbase.com/t/thrift/user/1162hvgrdn/recommended-way-to-incorporate-thrift-to-the-build-system , however it seems to be quite buggy, for example the if statement is missing ${THRIFT_FILE}…
yodafan86
  • 565
  • 1
  • 6
  • 14
8
votes
1 answer

Non-blocking SSL server using Thrift

Thrift provides several different non-blocking server models, like TNonblockingServer, THsHaServer, and TThreadedSelectorServer. But, I'd like to enable SSL on the server. It seems SSL only works on blocking servers in Thrift. Anyone has any clues…
ruichuan
  • 141
  • 1
  • 3
8
votes
2 answers

Apache Thrift Java-Javascript communication

I'm writing a Java server based on Apache Thrift, that will receive data from a Javascript client. I have completed the Java server, but the problem is that I can get a working example for the Javascript client (I was unable to find a good example…
John
  • 1,699
  • 5
  • 20
  • 29
8
votes
1 answer

SSL Certificate, not authenticating via thrift, but OK via browser

This is how I generate my SSL cert, key, etc: openssl genrsa -out server.key 1024 openssl rsa -in server.key -out new_key.pem openssl req -new -key server.key -out server.csr openssl x509 -req -days 10000 -in server.csr -signkey new_key.pem -out…
demonslayer319
  • 936
  • 1
  • 10
  • 20
8
votes
2 answers

Is client-side of thrift-cpp thread-safe?

I have three quetions. Is client-side of thrift-cpp thread-safe? Do they have some kind of connection-pool on thrift? Any good practice for using thrift-cpp-client. thanks!
kerwin
  • 941
  • 2
  • 12
  • 22
8
votes
2 answers

Is there an IPC transport implementation for Thrift ? or low latency SOA solutions

I want to introduce SOA to a low latency system without the overhead of TCP communication(even on the same machine). Thirft seems like a great fit as I have both Java and php processes. Is there an IPC transport implementation for thrift, or any…
Assaf Karmon
  • 915
  • 1
  • 10
  • 23
7
votes
2 answers

I'd like to use multiple services on one transport ( Thrift )

I'd like to create several services, and I want to use them with different identifiers. So I mean : I've got a Users and Projects service . I want to use these at the same time. I mean I can add more 'services' to the "handlermap" on…
kmmrtkq
  • 71
  • 1
  • 3
7
votes
4 answers

How to bypass or satisfy scala generic types for Thrift classes

I am trying to write a generic scala utility function for dealing with Apache Thrift generated Java classes. All Thrift generated Java classes extend the TBase interface with the following signature: public interface TBase, F…
user1084563
  • 2,149
  • 17
  • 28
7
votes
1 answer

ClassCastException while using ThriftData for serializing Thrift data in Avro format

We are trying to find a way to serialize Thrift schema into Avro format. The flow is as follows: We have a project 'A' which uses Thrift. The output result object is a thrift based object. We have project 'B' which uses Avro. We would like to read…
7
votes
1 answer

Can Apache Thrift push notifications to clients?

I'm looking to use Apache Thrift to have one client send data to the server and then have the server push that data to any clients. Is this possible, or would the client need to periodically check for new data? I'm looking for something similar to…
Sean
  • 2,453
  • 6
  • 41
  • 53
7
votes
3 answers

Perl Thrift client to Hive?

I'd like to connect to a Hadoop-based Hive datastore using Perl. Hive allows connection using the Thrift interface (http://wiki.apache.org/hadoop/Hive/HiveClient), and there is a Thrift implementation for Perl (e.g.…
etov
  • 2,972
  • 2
  • 22
  • 36
7
votes
2 answers

When to use RPC over WebSocket?

I have 2 components which need to communicate with each other in bidirectional way. For now I have 2 approaches, one is setting up RPC server in both side to establish the 2-way communication. Another is using websocket. Could anyone help me to…
zjffdu
  • 25,496
  • 45
  • 109
  • 159