Apache Gora
  1. Apache Gora
  2. GORA-24

Throwing EOFException with MEDIUMBLOB type for inlinks column

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: 0.4
    • Component/s: gora-sql
    • Labels:
      None
    • Environment:
      MySQL

      Description

      I had an exception with DbUpdaterJob complaining that inlinks column of type BLOB in webpage table was not big enough to store all the incoming links. So I changed the column definition in gora-sql-mapping.xml from BLOB to MEDIUMBLOB:

      <field name="inlinks" column="inlinks" jdbc-type="MEDIUMBLOB"/>

      Now I systematically get an exception in the update step:

      java.io.IOException: java.sql.BatchUpdateException: Error reading from InputStream java.io.EOFException
      at org.apache.gora.sql.store.SqlStore.flush(SqlStore.java:341)
      at org.apache.gora.sql.store.SqlStore.close(SqlStore.java:185)
      at org.apache.gora.mapreduce.GoraRecordWriter.close(GoraRecordWriter.java:55)
      at org.apache.hadoop.mapred.ReduceTask.runNewReducer(ReduceTask.java:567)
      at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:408)
      at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:216)
      Caused by: java.sql.BatchUpdateException: Error reading from InputStream java.io.EOFException
      at com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:2020)
      at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:1451)
      at org.apache.gora.sql.store.SqlStore.flush(SqlStore.java:329)
      ... 5 more

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Alexis
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development