Home Forums HDP 2.1 Technical Preview ClassNotFoundException: org.apache.avro.mapred.FsInput

Tagged: 

This topic contains 0 replies, has 1 voice, and was last updated by  Thomas Risberg 6 months, 1 week ago.

  • Creator
    Topic
  • #52232

    Thomas Risberg
    Participant

    Hi, I created a Hive table with some Avro data. Having trouble querying the data – I see this in the logs for the yarn app running the mapreduce for the query (couldn’t fit the whole stacktrace in this post):

    Caused by: java.lang.NoClassDefFoundError: org/apache/avro/mapred/FsInput
    	at org.apache.hadoop.hive.ql.io.avro.AvroGenericRecordReader.<init>(AvroGenericRecordReader.java:82)
    	at org.apache.hadoop.hive.ql.io.avro.AvroContainerInputFormat.getRecordReader(AvroContainerInputFormat.java:51)
    	at org.apache.hadoop.hive.ql.io.CombineHiveRecordReader.<init>(CombineHiveRecordReader.java:65)
    	... 16 more
    Caused by: java.lang.ClassNotFoundException: org.apache.avro.mapred.FsInput
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    	... 19 more
    

    Any thoughts how to solve this?

The forum ‘HDP 2.1 Technical Preview’ is closed to new topics and replies.