jjzjj

setInputPaths

全部标签

java - b/w setInputPaths(..) 和 addInputPaths(..) 有什么区别?

我正在尝试实现eclipse文档中给出的简单字数统计。相同的程序在终端上运行,但是当我尝试在eclipse中运行它时,我从运行配置中传递参数参数是:/home/rachit/wordcount/input/home/rachit/wordcount/outputGotthisexception:Exceptioninthread"main"java.lang.NullPointerExceptionatorg.apache.hadoop.mapreduce.lib.input.FileInputFormat.getBlockIndex(FileInputFormat.java:442)

hadoop - FileInputFormat.setInputPath 中的 FTP 文件名

我有一个代码可以使用mapreduce代码从FTP服务器读取数据。我们用来连接ftp服务器的代码如下`StringinputPath=args[0];StringoutputPath=args[1];Configurationconf1=newConfiguration();String[]otherArgs=newGenericOptionsParser(conf1,args).getRemainingArgs();Patharg=newPath(inputPath);FTPFileSystemftpfs=newFTPFileSystem();Patharg1=newPath(out