hadoop 报错Error: java.io.FileNotFoundException: Path is not a file:/xx1/xx2的解决办法
2017-10-10 18:15
866 查看
主要原因就是hadoop1.x的FileInputFormat.setInputPaths(job, new Path(input));
在hadoop2.x的环境运行导致的,将上述代码用下面两行代码替换即可:
FileInputFormat.setInputDirRecursive(job, true);
FileInputFormat.addInputPath(job, new Path(input));
在hadoop2.x的环境运行导致的,将上述代码用下面两行代码替换即可:
FileInputFormat.setInputDirRecursive(job, true);
FileInputFormat.addInputPath(job, new Path(input));
相关文章推荐
- hadoop 报错Error: java.io.FileNotFoundException: Path is not a file:/xx1/xx2的解决办法
- hadoop 报错Error: java.io.FileNotFoundException: Path is not a file:/xx1/xx2的解决办法
- hadoop 问题 copyFromLocal: java.io.FileNotFoundException: Parent path is not a directory: /user/admini
- 文件路径正确,报java.io.FileNotFoundException异常的原因及解决办法
- 【Bug解决】Spring配置错误:java.io.FileNotFoundException: class path resource [cxd/entity/User.hbm.xml] canno
- Hadoop启动报Error: JAVA_HOME is not set and could not be found解决办法
- java.io.FileNotFoundException: class path resource [beans.xml] cannot be opened because it does not exist 解决方法
- java cxf nested exception is java.io.FileNotFoundException: class path resource [META-INF/cxf/cxf-ex
- ubuntu Hadoop启动报Error: JAVA_HOME is not set and could not be found解决办法
- Hadoop启动报Error: JAVA_HOME is not set and could not be found解决办法
- 使用HttpURLConnection下载文件时出现 java.io.FileNotFoundException彻底解决办法
- 解决 Caused by: java.io.FileNotFoundException: class path resource [applicationContext_a_dataSource.xm
- [原]在Oracle SOASUITE 10g 调用ESB 报“java.io.FileNotFoundException: /u01/esb/product/10.1.3.1/j2ee/home/../Context.properties”问题的解决办法
- 异常解决 java.io.FileNotFoundException: class path resource [spring/applicationContext_*.xml]
- Hadoop启动报Error: JAVA_HOME is not set and could not be found解决办法
- nested exception is java.io.FileNotFoundException: class path resource [spring/spring-datasource-mog
- 关于写入文件缓存时报"java.io.FileNotFoundException open failed (is a director)"错误的解决方法
- Hadoop启动报Error: JAVA_HOME is not set and could not be found解决办法
- 使用HttpURLConnection下载文件时出现 java.io.FileNotFoundException彻底解决办法
- nested exception is java.io.FileNotFoundException: class path resource [spring/spring-datasource-mog