hadoop之mapReduce踩坑集合

居然没有把这个目录,之前还想爆粗口的,还是算了。

上苷酸菜:

  1.对于mapreduce中FileInputFormat只输入input文件根目录的方法尝试。

     很简单好吧: 

      step1:
        FileInputFormat.addInputPaths(job, paths);
      step2:
        String paths="hdfs://192.168.206.130:9000/input1/*";

    注意:1.addInputPaths(Job job, String commaSeparatedPaths)函数后面paths位string类型。

       2.在根目录末尾需加上“/*”,如实例所示。

  2.

        

原文地址:https://www.cnblogs.com/not-NULL/p/5168949.html