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

Ping Pong with Haskell and Thrift gets stuck

I'm trying to do a simple Ping Pong using Haskell and Thrift. However, it does only one repetition and then it gets stuck. I assume that the problem is in the (in)correct usage of Thrift rather than in Haskell. Probably something is not flushed…
J Fritsch
  • 3,338
  • 1
  • 18
  • 40
23
votes
1 answer

Difference between Thrift, JSON, and REST

Can somebody please tell me difference between JSON, Thrift and REST ? How one can decide which one to use ? Which one is the fastest one ?
Gaurav Dalvi
  • 275
  • 1
  • 2
  • 5
22
votes
4 answers

Thrift as a Public API replacement for REST?

I started creating a API for a new site I'm working on. I originally wanted to make it an normal REST API but I keep thinking about how cool thrift would be with the ability to compile multiple client libraries in one batch. Is Thrift a viable…
Johann du Toit
  • 2,609
  • 2
  • 16
  • 31
21
votes
5 answers

Can't install thrift gem on OS X El Capitan

Trying to install thift gem after OSX El Capitan upgrade: $ gem install thrift Building native extensions. This could take a while... ERROR: Error installing thrift: ERROR: Failed to build gem native extension. …
Anton
  • 905
  • 8
  • 18
21
votes
4 answers

Callbacks in Thrift Asynchronous Functions?

In Thrift it is possible to use the oneway modifier to specify a call as asynchronous. Apparently, it's not possible to define a callback, though, to be executed when the execution of the function is completed. It seems that the only possibility I…
Roberto Aloi
  • 30,570
  • 21
  • 75
  • 112
20
votes
3 answers

Where is the Thrift format specification?

Although Thrift format is relatively widely used (and project still alive), I haven't been able to find specification for the underlying data format. Or formats, given that there are apparently at least two formats; standard one, and compact…
StaxMan
  • 113,358
  • 34
  • 211
  • 239
19
votes
3 answers

How to handle authentication and authorization with thrift?

I'm developing a system which uses thrift. I'd like clients identity to be checked and operations to be ACLed. Does Thrift provide any support for those?
Igor Gatis
  • 4,648
  • 10
  • 43
  • 66
19
votes
1 answer

R Hive Thrift Client

I'm working on adding HiveServer2 support to my company's R data-access package. I'm curious what the best way of generating an R Thrift client would be. I'm considering writing an R wrapper around the Java Thrift client, similar to what rhbase…
yoni
  • 5,686
  • 3
  • 27
  • 28
18
votes
11 answers

Configure Thrift libcrypto required

I installed Openssl, Openssl-dev on Linux. When I configure Thrift, I get this error: checking for BN_init in -lcrypto... no configure: error: "Error: libcrypto required." Please advise!
Aloha
  • 425
  • 1
  • 5
  • 16
18
votes
2 answers

maven can't add files in generated-sources for compilation phase

I use Apache Thrift to generate code in target/generated-sources. The Thrift compiler produces a directory named gen-java which contains all the Java code. When I execute mvn compile, the code is generated correctly in…
SunLiWei
  • 1,313
  • 4
  • 11
  • 30
17
votes
4 answers

Is there a Thrift or Cassandra client for Node.js/JavaScript

I would like to start using Cassandra with a node.js deployment, but I can't find a Thrift or Cassandra client for Node.js and/or JavaScript. Is there one? Is there a simple means of generating Thrift connections? Update: The short answer to this…
Toby Hede
  • 36,755
  • 28
  • 133
  • 162
16
votes
6 answers

libtool error building thrift 0.9.1 on Ubuntu 13.04

Building thrift 0.9.1 (support C, C++, java, C#, perl, python) on Ubuntu 13.04 I am getting this error. ./configure run without any options, make run without any options... Making all in test make[2]: Entering directory…
David V
  • 486
  • 4
  • 17
16
votes
2 answers

Advantages of using cql over thrift

Are there any distinct advantages for using cql over thrift or is it simply a case of developers being too used to SQL? I'm wanting to switch from thrift querying to cql, the only problem is I'm not sure about the downsides of doing so. What are…
Daniel Tomey
  • 163
  • 1
  • 1
  • 5
15
votes
6 answers

Hbase client ConnectionLoss for /hbase error

I'm going completely crazy: Installed Hadoop/Hbase, all is running; /opt/jdk1.6.0_24/bin/jps 23261 ThriftServer 22582 QuorumPeerMain 21969 NameNode 23500 Jps 23021 HRegionServer 22211 TaskTracker 22891 HMaster 22117 SecondaryNameNode 21779…
CharlesS
  • 1,563
  • 2
  • 18
  • 31
14
votes
5 answers

Thrift Ruby gem

I cannot, for the life of me, successfully run "gem install thrift", the thing fails when building the gem's native extensions; this is the output: (acib708) ~ -> gem install thrift Building native extensions. This could take a while... ERROR: …
acib708
  • 1,573
  • 1
  • 13
  • 24