You could try using TFDTransport in C++ instead of TFileTransport. TFDTransport writes directly to a file descriptor, TFileTransport adds additional header information around each message that TIOStreamTransport won't be able understand.
-- Adam Simpkins [email protected] On Mon, Nov 15, 2010 at 10:35:26AM -0800, Zee 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
