thrift

Custom Hive SerDe unable to SELECT column but works when I do SELECT *

南笙酒味 提交于 2019-12-25 00:12:50
问题 I'm writing a custom SerDe and will only be using it to deserialize. The underlying data is a thrift binary, each row is an event log. Each event has a schema which i have access to, but we wrap the event in another schema, let's call it Message before storing. The reason I'm writing a SerDe instead of using the ThriftDeserializer is because as mentioned the underlying event is wrapped as a Message. So we first need to deserialize using the schema of Message and then deserialize the data for

TSocket read 0 bytes Apache Thrift MongoDB

夙愿已清 提交于 2019-12-24 19:39:56
问题 I am developing a small application with RPC framework Apache Thrift and Python. I want to use MongoDB. I am using mongoengine connector and I defined thrift data model and generated code from it When storing tags in a list in the server all is fine. However, I get errors when trying to store tags in database Here Is my code server.py import os import sys from mongoengine import * sys.path.append(os.path.join( os.path.dirname(os.path.abspath(__file__)), 'gen-py')) from thrift.transport import

Issue compiling thrift 0.9.0 c++ client

*爱你&永不变心* 提交于 2019-12-24 18:04:00
问题 I have tried compiling a cpp application with thrift 0.9.0 on ubuntu precise32: g++ hello_client.cpp gen-cpp/HelloSvc.cpp -lthrift However, this results in: In file included from /usr/local/include/thrift/transport/TSocket.h:25:0, from hello_client.cpp:4: /usr/local/include/thrift/transport/TTransport.h:34:1: error: 'uint32_t' does not name a type /usr/local/include/thrift/transport/TTransport.h:107:3: error: 'uint32_t' does not name a type ... 回答1: I tried to fix 0.9.0 by: 1) Install python

Can you use Thrift as a method of communication between apps in Cloud Foundry?

时光怂恿深爱的人放手 提交于 2019-12-24 15:50:47
问题 Does Cloud Foundry support Thrift for talking between apps? I can't find anything about this and it seems REST/HTTP or messaging are the preferred mechanisms for inter-app communication. Has anyone tried to offer a service using Thrift in CF? Is there any good reason why Thrift is not supported; or are there any plans to support it? I prefer Thrift to REST for cross-language communication because it's easy in Thrift to generate all the client-side classes used in the API calls. Plus it

Uncaught exception 'TTransportException' with message 'TSocket read 0 bytes'

你。 提交于 2019-12-24 13:44:08
问题 Everything fine on Localhost but on server its showing and error like PHP message: PHP Fatal error: Uncaught exception 'TTransportException' with message 'TSocket read 0 bytes' in /var/www/SH_MVC/library/thrift/transport/TSocket.php:263 Stack trace: #0 /var/www/SH_MVC/library/thrift/transport/TTransport.php(87): TSocket->read(4) #1 /var/www/SH_MVC/library/thrift/transport/TBufferedTransport.php(109): TTransport->readAll(4) #2 /var/www/SH_MVC/library/thrift/protocol/TBinaryProtocol.php(300):

What is an “annotation” in Apache Thrift, and what is it used for?

巧了我就是萌 提交于 2019-12-24 10:44:59
问题 The Thrift parser has a definition for an "annotation": https://git-wip-us.apache.org/repos/asf?p=thrift.git;a=blob;f=compiler/cpp/src/thrifty.yy;h=da5c562f9d7adf87b21e4c3ae30fbb9657e0c8b3;hb=HEAD#l85 What are these meant to be used for, and can the information that they contain be accessed in the generated client and/or server code? 回答1: Annotations are used to associate metadata with types defined in the Thrift definition (".thrift") file. The AnnotationThrift.test file in the source

Transport exception

不羁岁月 提交于 2019-12-23 18:54:41
问题 I'm trying to import happybase but gets the following error message while connecting. I have Hadoop pseudonode cluster and Hbase already running. Version of the components installed are as follows, Hadoop version - 1.0.4 Hbase version - 0.94.4 happybase -0.4 Can someone have a look into the exceptions below and let me know, if any thrift specific settings or any guidance in getting this fixed. Thank you. Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. build 5646)] on

Accumulo createBatchScanner range not working as expected

随声附和 提交于 2019-12-23 15:39:01
问题 I cant get a batch scanner to only scan for a specific row, when settings start and stop keys to the same thing I get no entry's back, when using an scanner I get this exception: "java.lang.IllegalArgumentException: Start key must be less than end key in range (Test : [] 0 false, Test : [] 0 false)"... I am writing in C# in Visual Studio 2010 and using Thrift (ver 0.9.1.1) and Accumulo's (ver 1.5.0) proxy.thrift code in the project. Here is my code, everything "works" but I don't get any

thrift hbase client - support filters and coprocessors

走远了吗. 提交于 2019-12-23 13:05:32
问题 Sadly, My hbase client language is Python, I am using happybase for now which is based on thrift AFAIK. I know thrift so far is still not supporting filters, coprocessors (correct me if I am wrong here). Can some one point me any Jira items I can track the plan/progress if there is one? The only ones I can find is from "Hbase in Action": “Thrift server to match the new Java API”: https://issues.apache.org/jira/browse/HBASE-1744 “Make Endpoint Coprocessors Available from Thrift”: https:/

Thrift include two files with same name?

夙愿已清 提交于 2019-12-23 12:42:53
问题 I have this structure: (namespace is java) package/common.thrift common.thrift fileA.thrift I want fileA.thrift to include both common.thrift include ".../package/common.thrift" include "common.thrift" struct A { 1: common.Something something #From first file (no error) 2: common.SomethingElse else #This throws error. } Thrift only reads content from the file specified first in order. Is there a way for this : common.thrift as common So that i can differentiate them. Or the only solution is