How can I run Hadoop run with a Java class?

前端 未结 9 882
甜味超标
甜味超标 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 04:00

    We can access HDFS through the hdfs api. My understanding of it is that you can use the hdfs api to contact a hadoop cluster running the dfs and fetch data from it.

    Why do we need to invoke the command as hadoop jar URLCat.jar

    why not just java URLCat

    Why does the client necessarily need to install hadoop and then contact the hadoop cluster?

提交回复
热议问题