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

Requests hang when using Hiveserver2 Thrift Java client

This is a follow up question to this question where I ask what the Hiveserver 2 thrift java client API is. This question should be able to stand along without that background if you don't need any more context. Unable to find any documentation on…
Daniel Koverman
  • 2,545
  • 2
  • 21
  • 30
9
votes
6 answers

Cassandra-cli cant connect to remote cassandra server

I have a cassandra server running on a server(serv1). cassandra-cli can connect to it when run on serv1. However, when i try to connect to it through some other server(serv2), i get the following…
Chander Shivdasani
  • 9,878
  • 20
  • 76
  • 107
9
votes
2 answers

PHP long integers for thrift

My Thrift service expects to receive a Long integer representing a timestamp in milliseconds, but coming from PHP, I know PHP thrift is supposed to automagically turn my PHP types into thrift types, but which PHP type does it expect for Long…
nnythm
  • 3,280
  • 4
  • 26
  • 36
8
votes
3 answers

High performance object serialization library supporting sum types

I wonder if any of the high performance serialization libraries (like Google protocol buffers) support sum types. Sum types are tagged unions, basically the ability to say that something is either A, B, or C. Sum types are used in languages such as…
user239558
  • 6,964
  • 1
  • 28
  • 35
8
votes
2 answers

Load balanced service using Zookeeper and Thrift

We have a computationally intensive service which is used to do a number of transformations. Its largely computationally bound (CPU bound) process. Essentially what happens is we have a message broker which sends messages to the processing service…
8
votes
3 answers

Thrift : TypeError: getaddrinfo() argument 1 must be string or None

Hi I am trying to write a simple thrift server in python (named PythonServer.py) with a single method that returns a string for learning purposes. The server code is below. I am having the following errors in the Thrift's python libraries when I run…
farda
  • 83
  • 1
  • 3
8
votes
2 answers

How to uninstall Thrift

I am using Ubuntu 10.04 LTS machine on which I cloned the git repository of Thrift and built it locally from the source. But latest version has some changes in it's API which is causing out application's build procedure to fail. Since the latest…
VarunGupta
  • 6,127
  • 5
  • 27
  • 31
8
votes
4 answers

Erlang Universal Binary Format? Anyone using it?

I recently stumbled upon this 2002 conference paper (Getting Erlang to talk to the outside world by Joe Armstrong) and I was wondering whether this is a standard that was ignored or if there was any adoption? Should I focus on Apache Thrift for…
Andrew Matthews
  • 3,006
  • 2
  • 29
  • 42
8
votes
3 answers

error: 'strdup' was not declared in this scope

I am trying to Build and Install the Apache Thrift compiler and libraries As shown in instructions run ./configure && make And I get this error: thrift 0.9.3 Building C++ Library ......... : no Building C (GLib) Library .... : no Building Java…
Tony Tannous
  • 14,154
  • 10
  • 50
  • 86
8
votes
0 answers

Hbase via Thrift connection timeout on Amazon EMR

I am writing to HBase using TThreadPoolServer Thrift server, I have the following HBase settings for max worker threads: hbase-site.xml hbase.thrift.maxWorkerThreads 50000
rajat
  • 3,415
  • 15
  • 56
  • 90
8
votes
3 answers

Apache Thrift Python 3 support

I compiled my test.thrift file using: thrift -gen py test.thrift Then i tried to import the created files: from test.ttypes import * When I use Python 2.7 the import works but with Python 3.4 it raises Traceback (most recent call last): File…
Rtik88
  • 1,777
  • 2
  • 11
  • 13
8
votes
1 answer

Xamarin thrift pcl Implementation

I have been trying to find a way to use apache thrift in my Xamarin Forms app but I could not manage since thrift.dll needs System.Web.dll and there is no mono implementation for System.Web.dll. Do you know any workaround to achieve this? Thanks..
user15916
  • 81
  • 2
8
votes
2 answers

Difference between hive thrift server from hive and spark distributions

What's the difference between running hive server using either of the following two commands :- hive --service hiveserver2 Running hive thrift server from spark/sbin$ ./start-thriftserver.sh Do they listen on separate ports? Which one should I…
BludShot
  • 301
  • 1
  • 3
  • 16
8
votes
1 answer

Cassandra Read a negative frame size

I'm experiencing this error while trying to query Cassandra using cassandra-jdbc(1.1.3) driver. Caused by: org.apache.thrift.transport.TTransportException: Read a negative frame size (-2147418110)! at…
udarakr
  • 536
  • 2
  • 6
  • 18
8
votes
1 answer

How to use thrift java code generator with multiple generator options

I'm looking at documentation for thirft code generator. It starts like this: Usage: thrift [options] file Options: -version Print the compiler version -o dir Set the output directory for gen-* packages (default: current…
Martin Klosi
  • 3,098
  • 4
  • 32
  • 39