Unfortunately, no - there is currently no way to use TBinaryProtocol instead. Is there a specific need for using the TBinaryProtocol? There is no specific reason for it to be hardcoded, just that TCompactProtocol is cheaper in terms of processing and space.
To use TBinaryProtocol, you'd have to recompile Flume (or at least create a custom Thrift Source which could be a copy-paste of the Flume Thrift Source, replacing the TCompact with TBinary). Hari On Thu, Apr 17, 2014 at 11:06 AM, Stefan Krawczyk <[email protected]>wrote: > Hi, > > I am wanting to try and use the TBinaryProtocol instead of the > TCompactProtocol for the flume thrift source. However it seems that the > choice of protocol to use on the flume side is *hardcoded *to be the > TCompactProtocol. > > So two questions: > 1) Is there any particular reason for it to be hardcoded? > 2) Would I run into other difficulties if I swapped out > the TCompactProtocol for the TBinaryProtocol? > > Cheers, > > Stefan >
