Hive table created, however map task is failing with exception

I have created a tweets table in Hive(hive-0.10.0 on CDH 4.6), stuck with the below error when try to execute query

hive> select * from tweets where id='442990122795929600';
Total MapReduce jobs = 1
Launching Job 1 out of 1
Number of reduce tasks is set to 0 since there's no reduce operator
Starting Job = job_201404071250_0010, Tracking URL = http://swapnil:50030/jobdetails.jsp?jobid=job_201404071250_0010
Kill Command = /usr/lib/hadoop/bin/hadoop job  -kill job_201404071250_0010
Hadoop job information for Stage-1: number of mappers: 1; number of reducers: 0
2014-04-08 00:45:24,755 Stage-1 map = 0%,  reduce = 0%
2014-04-08 00:46:25,892 Stage-1 map = 0%,  reduce = 0%
2014-04-08 00:47:06,691 Stage-1 map = 100%,  reduce = 100%
Ended Job = job_201404071250_0010 with errors
Error during job, obtaining debugging information...
Job Tracking URL: http://swapnil:50030/jobdetails.jsp?jobid=job_201404071250_0010
Examining task ID: task_201404071250_0010_m_000002 (and more) from job job_201404071250_0010

Task with the most failures(4): 
Task ID:

Diagnostic Messages for this Task:
java.lang.RuntimeException: Error in configuring object
    at org.apache.hadoop.util.ReflectionUtils.setJobConf(
    at org.apache.hadoop.util.ReflectionUtils.setConf(
    at org.apache.hadoop.util.ReflectionUtils.newInstance(
    at org.apache.hadoop.mapred.MapTask.runOldMapper(
    at org.apache.hadoop.mapred.Child$
    at Method)
    at org.apache.hadoop.mapred.Child.main(
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja

FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.MapRedTask
MapReduce Jobs Launched: 
Job 0: Map: 1   HDFS Read: 0 HDFS Write: 0 FAIL
Total MapReduce CPU Time Spent: 0 msec

I tried adding jar "hive-contrib-0.10.0-cdh4.6.0.jar" to classpath, but no luck.

Can anyone help with the issue ?


HIVE-SITE.XML was not being located in class path and hive was referring to hive-default.xml. Due to which, hive-metastore service was not running.

Modified the environment configuration files of hadoop and hive by referring to

hive-site.xml not found on classpath

Can you check for hive.exec.max.created.files variable in HIVE - when the number of files created by your Map/Reducer exceeds the max file of 100000(default value) - it kills the job Also check your hive.log to have more information about your issue.

Need Your Help

Google Universal Analytics Enhanced Link Atrribution


I'm using UA on our company's in-house software to help understand how our users use it, and part of that is learning what they click when they click and so on.

Php Browse a file then get its path

php html file path

Been stumbling around the net having a difficulty finding a sample of getting a file path of a browsed file. Some of them I read that this function no longer works anymore due to security reasons. ...