I cannot run any select query except select * . It gives following error.I am on verge of completing my project. Please Help!!



0
hive> select retweeted_status.user.screen_name as retweeted_screen_name from tweets_partitioned; 
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_201704300322_0003, Tracking URL = http://0.0.0.0:50030/jobdetails.jsp?jobid=job_201704300322_0003
Kill Command = /usr/lib/hadoop/bin/hadoop job  -kill job_201704300322_0003
Hadoop job information for Stage-1: number of mappers: 1; number of reducers: 0
2017-04-30 04:00:25,216 Stage-1 map = 0%,  reduce = 0%
2017-04-30 04:01:05,323 Stage-1 map = 100%,  reduce = 100%
Ended Job = job_201704300322_0003 with errors
Error during job, obtaining debugging information...
Job Tracking URL: http://0.0.0.0:50030/jobdetails.jsp?jobid=job_201704300322_0003
Examining task ID: task_201704300322_0003_m_000002 (and more) from job job_201704300322_0003

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

URL:
  http://localhost.localdomain:50030/taskdetails.jsp?jobid=job_201704300322_0003&tipid=task_201704300322_0003_m_000000
-----
Diagnostic Messages for this Task:
java.lang.RuntimeException: Error in configuring object
	at org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:109)
	at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:75)
	at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:133)
	at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:413)
	at org.apache.hadoop.mapred.MapTask.run(MapTask.java:332)
	at org.apache.hadoop.mapred.Child$4.run(Child.java:268)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:396)
	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1408)
	at org.apache.hadoop.mapred.Child.main(Child.java:262)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	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
hive>

 


1 Answer(s)


0

Hi Abhishek,

That's not the real error, here's how to find it:

Go to the Hadoop Jobtracker web-dashboard, find the hive Mapreduce jobs that failed and look at the logs of the failed tasks. That will show you the real error.

The console output errors are useful to track the real error because it doesn't have a view of the individual jobs/tasks to pull the real errors.

Hope this helps.

Thanks.

Your Answer

Click on this code-snippet-icon icon to add code snippet.

Upload Files (Maximum image file size - 1.5 MB, other file size - 10 MB, total size - not more than 50 MB)

Email
Password