- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Failed to submit the map reduce job using hive cli?
- Labels:
-
Apache Hadoop
Created 01-07-2017 11:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have installed below Hadoop services and all services are running fine
The problem is that when i am executing below query from Hive cli I am getting the exception in terminal as.
Query : select count(*) from mytables;
Exception:
short exception description:
Job Submission failed with exception 'java.io.FileNotFoundException(File does not exist: hdfs://<nanodeHostIp>:8020/hdp/apps/2.2.9.0-3393/mapreduce/mapreduce.tar.gz)
please find attached exception file
and I have also checked path on HDFS "/hdp" which is not completely present on file system so my question is, As have done fresh hadoop installation through Apache ambari then why ambari did not created files or directories under "/hdp" directory automatically.
What is the solution for above problem?
Thanks in advance.
Created 01-07-2017 02:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try to copy mapreduce tar file to hdfs and try hive query again.
#su - hdfs #hdfs dfs -mkdir -p /hdp/apps/2.2.9.0-3393/mapreduce/ #hdfs dfs -put /usr/hdp/<version>/hadoop/mapreduce.tar.gz /hdp/apps/2.2.9.0-3393/mapreduce/mapreduce.tar.gz
Created 01-07-2017 02:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try to copy mapreduce tar file to hdfs and try hive query again.
#su - hdfs #hdfs dfs -mkdir -p /hdp/apps/2.2.9.0-3393/mapreduce/ #hdfs dfs -put /usr/hdp/<version>/hadoop/mapreduce.tar.gz /hdp/apps/2.2.9.0-3393/mapreduce/mapreduce.tar.gz
Created 01-07-2017 03:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Rguruvannagari.
This solution really worked for me.
