记一次mapreduce读取不到输入文件的问题
hdfs上输入文件所在包含两个目录,分别是:/20170503/shoplast/ /20170503/shop/ 但是我想过滤掉shop,只把shoplast作为输入 故我实现了过滤器如下: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 public static class FileNameFilter implements PathFilter{ @Override public boolean accept(Pathpath){ if (path.getName().endsWith( "last" )){ return true ; } else { return false ; } } } 然后mapreduce的输入设为 /20170503/*, 开始执行。。。 结果Total input paths to process : 0 输入文件数为0! 这什么鬼! ----------------------------- 看了源码之后感觉自己是个弱智啊。源码如下: 1 2 3 4 5 6 7 8 9 10 11 12...