The issue here is of opaque naming. TFileTransport in C++ is actually a more 
advanced file transport which does chunking and writes boundary headers.

This should work fine if you use the C++ TSimpleFileTransport instead.

Cheers,
mcslee

-----Original Message-----
From: Bryan Duxbury [mailto:[email protected]] 
Sent: Monday, November 15, 2010 10:39 AM
To: [email protected]
Subject: Re: Java version of TFileTransport

It would be helpful if you could provide stack traces or error messages.

On Mon, Nov 15, 2010 at 10:35 AM, Zee <[email protected]> wrote:

> Hi there,
>
> I am trying to find a way to serialize some Flume events to file via
> Thrift's C++ api and read it back from Java api. I tried the following
> combinations and found that they don't work:
>
> c++: ( TBinaryProtocol ( TFileTransport ) )
> java: ( TBinaryProtocol ( TIOStreamTransport ) )
>
> c++: ( TBinaryProtocol ( TFileTransport ) )
> java: ( TBinaryProtocol ( TFramedTransport ( TIOStreamTransport ) ) )
>
> Is there any solution out there without having to apply the patch in (
> https://issues.apache.org/jira/browse/THRIFT-377)? Thanks!
>
> Codano
>

Reply via email to