Hi
I was trying to read base64 encoded thrift serialized file (where every line represents a base64 encoded thrift serialized object)
Code for generation of data
TSerializer ts = new TSerializer(new TBinaryProtocol.Factory());
Base64 encoder = new Base64(0);
String s = new String(encoder.encode(ts.serialize(t)));
For reading via pig
REGISTER ./elephant-bird-core-4.3.jar;
REGISTER ./elephant-bird-pig-4.3.jar;
REGISTER ./elephant-bird-hadoop-compat-4.3.jar;
REGISTER ./libthrift-0.9.0.jar;
REGISTER ./thrift-struct-1.0.0.jar;
raw_data = load '$INPUT_FILES' using com.twitter.elephantbird.pig.load.ThriftPigLoader('XXXXX);
DUMP raw_data;
But every time it doesnt give any output
Exec command
pig -x local -f test.pig --param INPUT_FILES='input.txt'
AnyHelp would be appreciated
Regards
Rohan