设为首页 加入收藏

TOP

DistributedCache   FileNotFoundException
2018-11-22 08:09:42 】 浏览:63
Tags:DistributedCache   FileNotFoundException

此时注意两种文件路径表示形式,一个在HDFS中。一一个是本地文件系统

DistributedCache.getLocalCacheFiles (job) 返回的是:/home/hadoop/In

然而:HDFS:hdfs://home/hadoop/In

本地: file://home/hadoop/In

此时如果你想在HDFS获取数据,同时直接使用DistributedCache.getLocalCacheFiles (job)的路径。

则会发生在本地系统查找文件的情况,则就会报FileNotFoundException

解决方法:file:// + DistributedCache.getLocalCacheFiles (job)

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇impala没有write权限插入数据到hi.. 下一篇Permission denied: user=root, a..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目