Problem with -libjars in hadoop

后端 未结 3 1922
遥遥无期
遥遥无期 2020-12-01 19:07

I am trying to run MapReduce job on Hadoop but I am facing an error and I am not sure what is going wrong. I have to pas library jars which is required by my mapper.

3条回答
  •  一整个雨季
    2020-12-01 19:44

    I found the answer, it was throwing error cause I was missing on the "main" class name in the command.

    The correct way to execute is: hadoop@ubuntu:/usr/local/hadoop$ bin/hadoop jar /home/hadoop/vardtst.jar VardTest -libjars /home/hadoop/clui.jar,/home/hadoop/model.jar gutenberg ou101

    where VardTest is the class containing the main() method.

    Thanks

提交回复
热议问题