AnsweredAssumed Answered

Anyone ran into an NoSuchElementException running Hive on Windows?

Question asked by lribinik on Dec 25, 2011
Latest reply on Dec 25, 2011 by Ted Dunning
I have installed Hive (0.8.0) on top of Hadoop (0.20.2) on Windows 7 (x64).
I'm able to connect to the db, create tables and perform "select *" queries, but whenever I try to run the simplest query that requires mapred, such as "select col1 from table" I get the following error on the task:

    11/12/25 12:33:19 INFO mapred.TaskInProgress: Error from attempt_201112251222_00
    01_m_000000_0: java.lang.RuntimeException: java.util.NoSuchElementException
            at org.apache.hadoop.hive.ql.exec.Utilities.getMapRedWork(Utilities.java
    :223)
            at org.apache.hadoop.hive.ql.io.HiveInputFormat.init(HiveInputFormat.jav
    a:255)
            at org.apache.hadoop.hive.ql.io.HiveInputFormat.getRecordReader(HiveInpu
    tFormat.java:223)
            at org.apache.hadoop.hive.ql.io.CombineHiveInputFormat.getRecordReader(C
    ombineHiveInputFormat.java:511)
            at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:338)
            at org.apache.hadoop.mapred.MapTask.run(MapTask.java:307)
            at org.apache.hadoop.mapred.Child.main(Child.java:170)
    Caused by: java.util.NoSuchElementException
            at java.util.Vector.lastElement(Vector.java:456)
            at com.sun.beans.ObjectHandler.lastExp(ObjectHandler.java:134)
            at com.sun.beans.ObjectHandler.dequeueResult(ObjectHandler.java:138)
            at java.beans.XMLDecoder.readObject(XMLDecoder.java:201)
            at org.apache.hadoop.hive.ql.exec.Utilities.deserializeMapRedWork(Utilit
    ies.java:514)
            at org.apache.hadoop.hive.ql.exec.Utilities.getMapRedWork(Utilities.java
    :215)
    
            ... 6 more

Outcomes