I follow the Hadoop book : The Ultimate Guide .
I got confused in example 3-1.
There is a Java source file, URLCat.java. I use javac to compile it into URLCat.class, then use jar to wrap it in a jar.
The book says that
% hadoop URLCat hdfs://localhost/user/tom/quangle.txt
to run it. I tried many different ways, for example
% hadoop jar URLCat.jar .......
but does not work. I got the following errors:
Exception in thread "main" java.lang.ClassNotFoundException: hdfs: // localhost / user / username / quangle / txt
What is the reason for this and how can I do it right?
source share