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

apache thrift monitor a hdfs file

Im planning to use Apache Thrift to monitor any change on my local changes and push that data to the client(the changed data). When I check the thrift documentation Im seeing multiple transport layers but do not understand which transport layer…
user1050619
  • 19,822
  • 85
  • 237
  • 413
0
votes
1 answer

Thrift to JSON and vice versa

I am working on Apache thrift these days. I have some .thrift file schemas. I wanted to convert them into JSON files. Is there any open source library or tool which can do that? Similarly for JSON to thrift also, if there is any library or tool,…
hatellla
  • 4,796
  • 8
  • 49
  • 101
0
votes
1 answer

Caching Thrift Transports

I'm implementing service discovery for my Thrift application. Servers announce their address themselves to a known path in ZooKeeper, and clients maintain a local cache of this path which they use to dynamically route requests to server instances…
ashwin153
  • 364
  • 2
  • 13
0
votes
1 answer

Thrift generated code undefined reference

I'm trying to write some code to work with Thrift-generated code but all I'm getting is a error on generated code. I'm using Thrift 0.10.0 and g++ 5.4.1. Error: server/libserver.a(TalkService.cpp.o): In function…
0
votes
1 answer

Where to store thrift or grpc interfaces?

thrift interface can be compiled across multiple languages. it's just text files, why there are no online tools like swagger hub? I don't want to copy paste interface across projects that use that interface also i don't find it useful to package…
Alexander Kondaurov
  • 3,677
  • 5
  • 42
  • 64
0
votes
1 answer

Why does my console display a stack trace from a Thrift exception raised within a try block?

My thrift client is not currently connected, so the call to self.transport.open() should time out and my program execution should continue as it does. But I want to know why the time out raises an exception, why the stack trace prints to console,…
James Riley
  • 127
  • 9
0
votes
1 answer

Unresolved reference to TSocket

I am having a problem in making intellij idea find the TSocket, TTransport and Tserver. I have thrift installed properly, and I was able to generate my .thrift file. And here is the version of it: I am adding the path in the server it self to the…
elias rizik
  • 263
  • 2
  • 11
0
votes
1 answer

Apache thrift: How to assign null as default value?

How to assign default value as null in apache thrift Interface definition language? I tried following, but it throw FileParseException. struct User { 1: string name, 2: optional string description = "", 3: optional string address = null…
Ra Ka
  • 2,995
  • 3
  • 23
  • 31
0
votes
2 answers

Why is there no midpoint between "do_GET" and full-blown rails-style routing?

I'm looking to expose a number of services to the web. There will be static web pages with jQuery based JavaScript code that accesses these services, and there will also be all kinds of applications that may access these services. (Or nobody will…
Jon Watte
  • 6,579
  • 4
  • 53
  • 63
0
votes
0 answers

hbase concurrecy issue with three different thread take same row same time

I have one table in hbase which having 10000 thousands records. I have used php thrift library from interact with hbase. My question is that I have three thread which execute on same time and take same records from table and update all three but I…
Jain Hemant
  • 150
  • 2
  • 19
0
votes
2 answers

Thrift installation ./bootstrap configuration bad interpreter

When installing Thrift to access my hbase using different languages, during the configuration when i am running [hadoop@localhost thrift]$ ./bootstrap.sh I get: -bash: ./bootstrap.sh: /bin/sh^M: bad interpreter: No such file or directory How to…
s.s
  • 93
  • 2
  • 14
0
votes
1 answer

Passing Thrift service as argument

Is it possible to pass a service as an argument to a method in another service in Thrift? service MyService { void foo(1: MyOtherService), } service MyOtherService { void bar(), }
ashwin153
  • 364
  • 2
  • 13
0
votes
0 answers

TSocket time out on Thrift Server after working fine for 45 minutes

I wrote a script to connect to HBase using Thrift Server. Each minute this script fetches 3200 records from HBase and updates some information and saves it. The first 30-45 minutes this is working fine on the Ambari Hadoop cluster. After that a…
Jain Hemant
  • 150
  • 2
  • 19
0
votes
1 answer

Convert Thrift to xsd generator producing php

I'm using the latest version of Thrift and trying to generate XSDs out of my Thrift schema. When running thrift_0.10.0 --gen xsd mySchema.thrift it generates a php file !? Why is there no xsd generated but instead a php file ?
FreshMike
  • 481
  • 1
  • 6
  • 26
0
votes
1 answer

save groupBy rdd result back to HDFS

I have some customized thrift-compact based serialization format file on hdfs as input. By extending hadoop's FileInputFormat, we can quickly load the files into a RDD struct. Now, after applying some groupBy transformation, the output RDD becomes…
WilliamLou
  • 1,914
  • 6
  • 27
  • 38