Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-1196

StreamXmlRecordReader throws java.io.IOException: Resetting to invalid mark

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None
    • Suse Linux 64bit, JDK 1.6, Hadoop 0.12.2, 25 node cluster.

    Description

      I encounter this error consistently whenever I have over 500 maps in my job. I read XML feeds with about 200,000 documents in each, parse and index the document. I get the following exception.

      java.io.IOException: Resetting to invalid mark
      at java.io.BufferedInputStream.reset(BufferedInputStream.java:416)
      at java.io.FilterInputStream.reset(FilterInputStream.java:200)
      at org.apache.hadoop.streaming.StreamXmlRecordReader.fastReadUntilMatch(StreamXmlRecordReader.java:291)
      at org.apache.hadoop.streaming.StreamXmlRecordReader.readUntilMatchBegin(StreamXmlRecordReader.java:120)
      at org.apache.hadoop.streaming.StreamXmlRecordReader.seekNextRecordBoundary(StreamXmlRecordReader.java:113)
      at org.apache.hadoop.streaming.StreamXmlRecordReader.init(StreamXmlRecordReader.java:75)
      at org.apache.hadoop.streaming.StreamXmlRecordReader.(StreamXmlRecordReader.java:65)
      at com.gale.searchng.workflow.fetcher.DocFetcherParser$XmlInputFormat.getRecordReader(DocFetcherParser.java:231)
      at org.apache.hadoop.mapred.MapTask.run(MapTask.java:139)
      at org.apache.hadoop.mapred.TaskTracker$Child.main(TaskTracker.java:1445)

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            vseetharam Seetharam Venkatesh
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment