FileNotFoundException: ...3.0.0-cdh6.0.0-mr-framework.tar.gz

注:S201是集群的Master节点

 

描述过程:

在CDH集群管理页面

依次启动zookeeper、yarn、hdfs、spark、hive

master节点上,root用户进入以下操作:


hive
hive> show databases;
hive> use default;
hive> create table student(id int,name string);
hive> insert into student values(1000,"ss");

执行完insert语句后会出现以下异常:

Query ID = root_20190721193356_27407901-c3a7-421e-99f1-d3cef49c5a6f
Total jobs = 3
Launching Job 1 out of 3
Number of reduce tasks is set to 0 since there's no reduce operator
19/07/21 19:33:57 INFO client.RMProxy: Connecting to ResourceManager at s201/192.168.242.201:8032
19/07/21 19:33:57 INFO client.RMProxy: Connecting to ResourceManager at s201/192.168.242.201:8032
java.io.FileNotFoundException: File does not exist: hdfs://s201:8020/user/yarn/mapreduce/mr-framework/3.0.0-cdh6.0.0-mr-framework.tar.gz
    at org.apache.hadoop.fs.Hdfs.getFileStatus(Hdfs.java:145)
    at org.apache.hadoop.fs.AbstractFileSystem.resolvePath(AbstractFileSystem.java:488)
    at org.apache.hadoop.fs.FileContext$25.next(FileContext.java:2225)
    at org.apache.hadoop.fs.FileContext$25.next(FileContext.java:2221)
    at org.apache.hadoop.fs.FSLinkResolver.resolve(FSLinkResolver.java:90)
    at org.apache.hadoop.fs.FileContext.resolve(FileContext.java:2227)
    at org.apache.hadoop.fs.FileContext.resolvePath(FileContext.java:607)
    at org.apache.hadoop.mapreduce.JobSubmitter.addMRFrameworkToDistributedCache(JobSubmitter.java:460)
    at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:146)
    at org.apache.hadoop.mapreduce.Job$11.run(Job.java:1570)
    at org.apache.hadoop.mapreduce.Job$11.run(Job.java:1567)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1685)
    at org.apache.hadoop.mapreduce.Job.submit(Job.java:1567)
    at org.apache.hadoop.mapred.JobClient$1.run(JobClient.java:576)
    at org.apache.hadoop.mapred.JobClient$1.run(JobClient.java:571)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:422)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1685)
    at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:571)
    at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:562)
    at org.apache.hadoop.hive.ql.exec.mr.ExecDriver.execute(ExecDriver.java:433)
    at org.apache.hadoop.hive.ql.exec.mr.MapRedTask.execute(MapRedTask.java:143)
    at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:199)
    at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:97)
    at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:2163)
    at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1825)
    at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1549)
    at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1267)
    at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1257)
    at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:239)
    at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:187)
    at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:409)
    at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:838)
    at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:774)
    at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:701)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.apache.hadoop.util.RunJar.run(RunJar.java:313)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:227)
Job Submission failed with exception 'java.io.FileNotFoundException(File does not exist: hdfs://s201:8020/user/yarn/mapreduce/mr-framework/3.0.0-cdh6.0.0-mr-framework.tar.gz)'

解决办法:

1、首先登陆CDH集群管理页面

http://s201:7180/cmf/login

2、进行如下图的操作:

图1.

FileNotFoundException: ...3.0.0-cdh6.0.0-mr-framework.tar.gz_第1张图片

图2.

FileNotFoundException: ...3.0.0-cdh6.0.0-mr-framework.tar.gz_第2张图片

上述操作完成后,问题就可以解决了。

 

你可能感兴趣的:(hadoop,exception,hive,CDH)