Run a Local file system directory as input of a Mapper in cluster

后端 未结 7 987
刺人心
刺人心 2021-01-12 13:22

I gave an input to the mapper from a local filesystem.It is running successfully from eclipse,But not running from the cluster as it is unable to find the local input path s

7条回答
  •  醉梦人生
    2021-01-12 13:53

    U might wanna try this by setting the configuration as

    Configuration conf=new Configuration();
    conf.set("job.mapreduce.tracker","local");
    conf.set("fs.default.name","file:///");
    

    After this u can set the fileinputformat with the local path and u r good to go

提交回复
热议问题