hadoop-hdfs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ramasubramanian Narayanan <ramasubramanian.naraya...@gmail.com>
Subject How to overwrite Key in RecordReader function
Date Thu, 12 Jun 2014 08:47:20 GMT

We are trying to write a UDF to read an XML which contains some unbounded

For repeated tags, new row has to be generated.

Please let us know how to ovewrite the default key with the new key in the
Record Reader function (where we do for loop to make multiple rows).

*Sample XML:*
  <name> ABC </name>
    <Address> address1 </Address>
    <Address> address2 </Address>

*Expected Output* (using custom input format in HIVE table and quering
through a view using xpath).

ABC | address1|
ABC | address2

Thanks and Regards,

View raw message