create external table test1row format serde "com.twitter.elephantbird.hive.serde.ProtobufDeserializer"with serdeproperties ("serialization.class"="Test.Messages$Event")stored asinputformat "com.twitter.elephantbird.mapred.input.DeprecatedRawMultiInputFormat"outputformat "org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat"location '/tmp/datafolder/';
ProtobufBlockWriter<Messages.Event> writer = new ProtobufBlockWriter<Messages.Event>(os, Messages.Event.class);Messages.Event msg = Messages.Event.newBuilder().setServiceEnd(Messages.ServiceCallEnd.newBuilder().setId(Messages.ServiceCallId.newBuilder().setId(ByteString.copyFromUtf8("call numero 1"))).setDate(Messages.Date.newBuilder().setUtcTicks(1111111)).build()).setEventDiscriminator(Messages.Event.EventType.valueOf(Messages.Event.EventType.ServiceCallEnd_VALUE)).build();writer.write(msg);writer.finish();writer.close();
--
You received this message because you are subscribed to a topic in the Google Groups "elephantbird-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elephantbird-dev/lnOzF39LED0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elephantbird-d...@googlegroups.com.
To post to this group, send email to elephant...@googlegroups.com.
Visit this group at http://groups.google.com/group/elephantbird-dev.
For more options, visit https://groups.google.com/d/optout.