Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-1435

Host jobs throw NullPointerException with MySQL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • nutchgora
    • 2.1
    • injector
    • None

    Description

      As described by Joan Espasa Arxer on user@ [0] the following NPE is thrown when we attempt to use the hostinject, updatehostdb and readhostdb jobs.

      HostInjectorJob: org.apache.gora.util.GoraException:
      java.lang.NullPointerException
      at
      org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:167)
       at
      org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:135)
      at
      org.apache.nutch.storage.StorageUtils.createWebStore(StorageUtils.java:69)
       at org.apache.nutch.host.HostInjectorJob.inject(HostInjectorJob.java:146)
      at org.apache.nutch.host.HostInjectorJob.run(HostInjectorJob.java:160)
       at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
      at org.apache.nutch.host.HostInjectorJob.main(HostInjectorJob.java:174)
      Caused by: java.lang.NullPointerException
      at org.apache.gora.sql.store.SqlStore.addColumn(SqlStore.java:790)
      at org.apache.gora.sql.store.SqlStore.createSqlTable(SqlStore.java:802)
       at org.apache.gora.sql.store.SqlStore.initialize(SqlStore.java:165)
      at
      org.apache.gora.store.DataStoreFactory.initializeDataStore(DataStoreFactory.java:102)
       at
      org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:161)
      ... 6 more
      

      Ferdy proposed a fix for this which I will patch against 2.X branch and duly attach.

      [0] http://www.mail-archive.com/user%40nutch.apache.org/msg06998.html

      Attachments

        1. NUTCH-1435.patch
          0.5 kB
          Lewis John McGibbney

        Issue Links

          Activity

            People

              lewismc Lewis John McGibbney
              lewismc Lewis John McGibbney
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: