[
https://issues.apache.org/jira/browse/HADOOP-3562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bo Adler updated HADOOP-3562:
-----------------------------
Attachment: 0002-support-for-gzip-d-xml-records.patch
Here is a patch which adds gzip support.
It was slightly awkward to do in a very clean way. In particular, I had to
change the access modifier of a variable from a super-class; arguably, I could
have just created a duplicate variable within the StreamInputFormat class, but
I expect that other subclasses will have similar issues so I opted for changing
the parent class.
The other ugly change I had to make was move pos_ into StreamBaseRecordReader,
but still require inheritors to update the variable.
> StreamXMLRecordReader does not support gzipped files
> ----------------------------------------------------
>
> Key: HADOOP-3562
> URL: https://issues.apache.org/jira/browse/HADOOP-3562
> Project: Hadoop Core
> Issue Type: Bug
> Components: contrib/streaming
> Affects Versions: 0.17.0
> Reporter: Bo Adler
> Attachments: 0001-test-to-demonstrate-problem.patch,
> 0002-support-for-gzip-d-xml-records.patch
>
>
> I am using Hadoop Streaming to analyze Wikipedia data files, which are in XML
> format and are compressed because they are so large. While doing some
> preliminary tests, I discovered that you cannot use StreamXMLRecordReader
> with gzipped data files -- the data is fed into the mapper script as raw data.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.