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(
            at org.apache.hadoop.mapred.MapTask.runOldMapper(
            at org.apache.hadoop.mapred.Child.main(
    Caused by: java.util.NoSuchElementException
            at java.util.Vector.lastElement(
            at com.sun.beans.ObjectHandler.lastExp(
            at com.sun.beans.ObjectHandler.dequeueResult(
            at java.beans.XMLDecoder.readObject(
            at org.apache.hadoop.hive.ql.exec.Utilities.deserializeMapRedWork(Utilit
            at org.apache.hadoop.hive.ql.exec.Utilities.getMapRedWork(
            ... 6 more