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

What are Apache Thrift and Google Protocol Buffers used for?

I see Thrift and Protocol Buffers mentioned a lot, but I don't really understand what they're used for. From my limited understanding, they're basically used when you want to do cross-language serialization, i.e., when you have some data structures…
grautur
  • 29,955
  • 34
  • 93
  • 128
13
votes
3 answers

Does thrift support sending data over websockets?

I would like to use thrift with a Java server sending data to a browser using websockets. Is this possible?
Xavier
  • 8,828
  • 13
  • 64
  • 98
13
votes
2 answers

TNonblockingServer, TThreadedServer and TThreadPoolServer, which one fits best for my case?

Our analytic server is written in c++. It basically queries underlying storage engine and returns a fairly big structured data via thrift. A typical requests will take about 0.05 to 0.6 seconds to finish depends on the request size. I noticed that…
Alex Dong
  • 975
  • 2
  • 9
  • 18
13
votes
2 answers

What is the repository for scrooge-sbt-plugin?

What is the repository for the current version of scrooge-sbt-plugin? Or are the setup instructions outdated? According to the documentation, I added this to a Play Framework project: In project/plugins.sbt addSbtPlugin("com.twitter" %%…
Fernando Correia
  • 21,803
  • 13
  • 83
  • 116
12
votes
4 answers

python thrift error ```TSocket read 0 bytes```

My python version:2.7.8 thrift version:0.9.2 python-thrift version:0.9.2 OS: centOS 6.8 My test.thrift file: const string HELLO_IN_KOREAN = "an-nyoung-ha-se-yo" const string HELLO_IN_FRENCH = "bonjour!" const string HELLO_IN_JAPANESE =…
Karl Doenitz
  • 2,220
  • 3
  • 20
  • 38
12
votes
3 answers

Enable Thrift in Cassandra Docker

I'm trying to start up a docker image that runs cassandra. I need to use thrift to communicate with cassandra, but it looks like that's disabled by default. Checking out the cassandra logs shows: INFO 21:10:35 Not starting RPC server as requested.…
cscan
  • 3,684
  • 9
  • 45
  • 83
12
votes
3 answers

Type has not field or method Read (but it does)

I'm stumped on this one. In the project that I'm working on, we generate go code from Thrift. The code gets created in the package A/B/thriftapi (which used to be A/B/thrift which was causing problems because all of the generated code was…
FuriousGeorge
  • 4,561
  • 5
  • 29
  • 52
12
votes
1 answer

Best way to send binary data with Thrift

I have a structure in c++ which stores bytes like this: struct RemoteData { /// some other fields here unsigned char* buf; int bufLen; }; And I need to send this data to remote service, written in C++, via thrift. I found three…
DanilaNV
  • 169
  • 2
  • 4
  • 13
11
votes
1 answer

Using Thrift in iOS

Is there good documentation for using thrift in iOS? I am having trouble getting started and figuring out how to apply thrift to iOS.
user1120008
  • 1,005
  • 4
  • 13
  • 27
11
votes
2 answers

Apache thrift: client timeout issues

I have some Apache Thrift (v.0.6.1) test application with perl-server and php-client. The behaviour I cannot explain: If we call server-method with invalid argument we see the error in server-output, but php-client stays waiting the response…
zerkms
  • 249,484
  • 69
  • 436
  • 539
11
votes
1 answer

What is the purpose of Thrift parameter numbering?

What is the purpose of the numbers before each parameter (field identifiers)? Why does it jump from 5 to 16? struct Tweet { 1: required i32 userId; 2: required string userName; 3: required string text; 4: optional Location loc; …
Daniel Que
  • 1,734
  • 4
  • 20
  • 31
11
votes
2 answers

HBase: Thrift vs Rest performance

I know there are a couple of post on StackOverflow about REST and Thrift for HBase, but I would like to focus a bit on the question of performance. I have been playing with the following libraries in Node.js to connect to an HBase…
Marc Trudel
  • 1,244
  • 1
  • 12
  • 19
11
votes
2 answers

Is an unbound SecurityManager really an invalid application configuration in Shiro?

I'm adding Apache Shiro to my application and I'm wondering if the following error message is truly accurate: org.apache.shiro.UnavailableSecurityManagerException: No SecurityManager accessible to the calling code, either bound to the…
Ryan J
  • 2,502
  • 5
  • 31
  • 41
10
votes
1 answer

Is it possible to use Apache Thrift on a regular web server?

I already have a web server that I pay for, and I want to expose some services on it using Thrift and PHP. My question is: can I run a Thrift server using normal PHP that's hosted on the default port (the same way web pages are hosted) instead of…
Will Warren
  • 1,294
  • 15
  • 33
10
votes
2 answers

Asynchronous request with Thrift in Java

I'm looking for an example of how to make an asynchronous request in Java using Thrift. Looking at the generated code this seems to be possible, but I can't find a single example of how. Here is an example of generated code that suggest the…
MasterScrat
  • 7,090
  • 14
  • 48
  • 80