报错提示的意思是说,Path这个路径须要是一个具体的文件,而不能是文件夹。ide
一、改成具体的文件的路径,则输入为该具体的文件oop
二、在具体的文件夹路径做以下修改,则输入为文件夹路径下全部文件spa
例如文件都在 data/input/gulivideo/video/2008/0222/ 目录下 code
原来:hadoop
//输入文件夹下全部文件 Path inputPath=new Path("data/input/gulivideo/video/2008/0222/"); Path outputPath=new Path("data/output/gulivideo");
修改后:input
//输入文件夹下全部文件 Path inputPath=new Path("data/input/gulivideo/video/2008/{0222/*}"); Path outputPath=new Path("data/output/gulivideo");