To open eclipse go to root and cd location of eclipse
type eclipse
Eclipse should open up create the classes
Create a MapReduce prooject and java class and export it to jar file and save it in some location.
Let this location be /usr/mr
type on hadoop bin
hadoop jar /usr/mr/wc.jar [src folder] [target folder]
hadoop jar /usr/mr/wc.jar [i/p file] //when output is getting saved in hbase tables or hdfs files mentioned in the code.
hadoop jar /usr/mr/wc.jar //when both the locations are provided beforehand
No comments:
Post a Comment