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

classloader problem for clients

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.6.0
    • 0.6.1
    • io
    • None

    Description

      HADOOP-419 bit again, after updating with hadoop-0.6.0. Although resolved, there was one instance left in io.ObjectWritable.java still using Thread.currentThread().getContextClassLoader() instead of conf.getClassByName()
      I got exceptions like:

      java.lang.RuntimeException: readObject can't find class
      at org.apache.hadoop.io.ObjectWritable.readObject(ObjectWritable.java:223)
      at org.apache.hadoop.io.ObjectWritable.readFields(ObjectWritable.java:59)
      at org.apache.hadoop.ipc.Client$Connection.run(Client.java:256)
      Caused by: java.lang.ClassNotFoundException: org/apache/hadoop/io/ObjectWritable$NullInstance
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:242)
      at org.apache.hadoop.io.ObjectWritable.readObject(ObjectWritable.java:219)
      ... 2 more

      Attachments

        1. conf-classloader.patch
          0.7 kB
          Owen O'Malley

        Activity

          People

            omalley Owen O'Malley
            ckunz Christian Kunz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: