我使用了hive-0.11.0,hadoop 2.0.3和mysql 5.6 for metadata
我可以成功运行SELECT * FROM记录之类的语句,而不会创建map / reduce任务。
但是当我尝试运行SELECT * FROM records其中year ='1949'时,map / reduce任务总会出现错误
hadoop给我诊断:
应用application_1382680612829_0136失败1次,由于AM的容器appattempt_1382680612829_0136_000001退出,退出码:-1000原因是:java.io.FileNotFoundException:文件/ tmp / Hadoop的Hadoop的/ NM-本地目录/ filecache根本不存在org.apache.hadoop .fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:492)在org.apache.hadoop.fs.FileSystem.primitiveMkdir(FileSystem.java:996)在org.apache.hadoop.fs.DelegateToFileSystem.mkdir(DelegateToFileSystem.java:150 )在org.apache.hadoop.fs.FilterFs.mkdir(FilterFs.java:187)在org.apache.hadoop.fs.FileContext $ 4.next(FileContext.java:730)在org.apache.hadoop.fs.FileContext $ 4.next(FileContext.java:726)在org.apache.hadoop.fs.FileContext $ FSLinkResolver.resolve(FileContext.java:2379)在org.apache.hadoop.fs.FileContext.mkdir(FileContext.java:726) org.apache.hadoop.yarn.util.FSDownload.createDir(FSDownload.java:88)atg.apache.hadoop.yarn.util.FSDownload.call(FSDownload.java:274)org.apache.hadoop.yarn .util.FSDownlo ad.call(FSDownload.java:51)at java.util.concurrent.FutureTask $ Sync.innerRun(FutureTask.java:303)at java.util.concurrent.FutureTask.run(FutureTask.java:138)at java.util .concurrent.Executors $ RunnableAdapter.call(Executors.java:441)at java.util.concurrent.FutureTask $ Sync.innerRun(FutureTask.java:303)at java.util.concurrent.FutureTask.run(FutureTask.java:138 )在java.util.concurrent.ThreadPoolExecutor中$ Worker.runTask(ThreadPoolExecutor.java:886)在java.util.concurrent.ThreadPoolExecutor中的$ Worker.run(ThreadPoolExecutor.java:908)在java.lang.Thread.run(线程。 java:662)。这次尝试失败了..申请失败了。
我应该怎么做?感谢