Hadoop query regarding setJarByClass method of Job class

前端 未结 3 1684
旧时难觅i
旧时难觅i 2021-01-03 20:33

In the Hadoop API documentation it\'s given

that

setJarByClass 

public void setJarByClass(Class cls)

Set the Jar by finding where a give         


        
3条回答
  •  抹茶落季
    2021-01-03 20:57

    job.setJarByClass(WordCount.class);
    

    Helps to identify the Jar which contains the Mapper and Reducer by specifying a class in that Jar.

提交回复
热议问题