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
step 1: Compile Java Program:
javac URLCat.java -classpath $HADOOP_HOME/share/hadoop/common/hadoop-common-2.7.0.jar
step 2: Create jar file :
jar cvf URLCat.jar URLCat.class
Step 3: Execute program : (mention your hdfs file location)
hadoop jar URLCat.jar URLCat hdfs://localhost:9000/pcode/wcinput.txt