How can I run Hadoop run with a Java class?

前端 未结 9 807
甜味超标
甜味超标 2021-01-20 03:13

I am following the book Hadoop: the definitive Guide.

I am confused on example 3-1.

There is a Java source file, URLCat.java. I use javac to co

9条回答
  •  礼貌的吻别
    2021-01-20 03:52

    It's quite simple:

    [me@myhost ~]$ hadoop jar
    RunJar jarFile [mainClass] args...
    

    So, what you want is hadoop jar yourJar.jar your.class.with.Main [any args]

提交回复
热议问题