Welcome to the Cloudera Community

Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Who agreed with this topic

Avoiding Key Value Literals in Map reduce out put

avatar
Champion Alumni

Hello,

My map reduce program currently outputs  avro data in the following format.Is there a way I can avoid the key and literals in the output?

 

{
"type" : "record",
"name" : "KeyValuePair",
"namespace" : "org.apache.avro.mapreduce",
"doc" : "A key/value pair",
"fields" : [ {
"name" : "key",
"type" : "null",
"doc" : "The key"
}, {
"name" : "value",
"type" : {
"type" : "record",
"name" : "RecordType",
"namespace" : "model",
"fields" : [ {  ]} }

Who agreed with this topic