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

Apache thrift undefined reference to apache::thrift::server::TNonblockingServer

I'm trying to compile a piece of code that creates a TNonblockingServer and I get the following compile error. Any idea what's wrong? something_server.cpp:(.text+0x1ad): undefined reference to…
Manish Burman
  • 3,069
  • 2
  • 30
  • 35
7
votes
4 answers

Thrift TSimpleServer becomes unresponsive after several successful requests

I have a Thrift API served from a Java application running on Linux. I'm using a .NET client to connect to the API and execute operations. The first few calls to the service work fine without errors, but then (seemingly at random) a call will…
noahlz
  • 10,202
  • 7
  • 56
  • 75
7
votes
2 answers

how to use Backbone.js with the Symfony framework and or Apache Thrift

I recently installed a web app which use Symfony2 framework and Apache Thrift. Now I would like to make backbone usable in Symfony2 framework. My question is about Backbone.sync. How can I override/use Backbone.sync in order to get data from the…
underscore666
  • 1,719
  • 4
  • 24
  • 37
7
votes
2 answers

Access Django testserver from Django test

I want to write a unit test that performs HTTP requests directly (instead of using django.test.client.Client). If you're curious why - it's because I want to test a Thrift-over-HTTP API that I expose from my Django application - and I want to use…
ibz
  • 44,461
  • 24
  • 70
  • 86
6
votes
4 answers

thrift cpp sample code compile error

I'm new to Thrift. I think I installed it correctly. I have the folowing libs : luckyan315@ubuntu:~/code/thrift-0.8.0/tutorial/cpp$ ll /usr/local/lib/ total 11496 drwxr-xr-x 4 root root 4096 Mar 23 19:35 ./ drwxr-xr-x 10 root root 4096 Oct…
GL An
  • 63
  • 1
  • 1
  • 3
6
votes
4 answers

Converting Protobuf definitions to Thrift

Are there any tools that exist to generate a Thrift interface definition from a Protobuf definition?
Will Gorman
  • 869
  • 1
  • 7
  • 16
6
votes
1 answer

Problems starting Cassandra with “./bin/cassandra -f”

For some reason when I try to start Cassandra with this command: bin/cassandra -f The terminal gets stuck on: Listening for thrift clients... Is it normal? Does that mean that Thrift can talk too Thrift? I am using Ubuntu Server.
jnbdz
  • 4,863
  • 9
  • 51
  • 93
6
votes
3 answers

Using Apache Thrift in Windows

I'm interested in compiling Thrift-generated code and linking to the thrift C++ library in a windows environment. Doing some research, I found a few recent links: 1) Thrift Win32 Installation Using Cygwin/MinGW 2) THRIFT-1031 and THRIFT-1123 patches…
Pat
  • 97
  • 1
  • 6
6
votes
2 answers

How do you convert a thrift object to Json in python?

I've tried to convert a thrift object to json in python. If I try to use json.dumps(thriftObj), it fails with the following: TypeError: MyThriftObj(...) is not JSON serializable I tried fixing it with a default function: json.dumps(thriftObj,…
ThinkBonobo
  • 15,487
  • 9
  • 65
  • 80
6
votes
0 answers

ValueError: filedescriptor out of range in select() while using thrift?

I'm tring to provide a remote server by thrift, and below is my server-side trial: from test_thrift.test_server.TestService import Iface,Processor from thrift.Thrift import TType,TException from thrift.Thrift import TProcessor from thrift.transport…
jia Jimmy
  • 1,693
  • 2
  • 18
  • 38
6
votes
3 answers

Integrate Hbase with PHP

I have installed the Hbase and now I am looking for some PHP library to integrate hbase with PHP I have tried 2 libraries one is I tried to connect with thrift but was unable to do so 2nd is I tried to connect it with popHbase but was unable to do…
user711372
  • 89
  • 1
  • 1
  • 4
6
votes
1 answer

How to import Thrift 0.12 into Xcode to support Swift 4.2

I am trying to set up a new project that supports Thrift 0.12 and Swift 4.2 in Xcode. In my swift files that were generated by Thrift, all of them have the line "import Thrift", but I get a compile error "No such module 'Thrift'". I am at a loss on…
Jemin Ryu
  • 95
  • 6
6
votes
3 answers

Thrift + Tornado + Async

Is there any way to asynchronously pass Thrift protocol through Tornado web server?
DarkAnthey
  • 167
  • 2
  • 9
6
votes
1 answer

Jackson FAIL_ON_UNKNOWN_PROPERTIES to false not working

I am trying to make thrift deserialization for jackason backward compatible ObjectMapper mapper = getObjectMapper(false /* pretty */); mapper.configure(DeserializationFeature.READ_UNKNOWN_ENUM_VALUES_AS_NULL, true); // This works // This doesn't…
user10714010
  • 865
  • 2
  • 13
  • 20
6
votes
2 answers

Easy to use extensible serialization/marshalling?

I have a question about serializaton of data structures. There are a many possibilies for serialization of data structures (also called marshalling or deflating, see wiki-article). Every programming language, framework, standard or library seems to…