Thursday, 15 March 2012

java - package org.apache.hadoop.fs does not exist -



java - package org.apache.hadoop.fs does not exist -

first, know has been asked before, none of solutions work me , know why.

i trying compile standard 'wordcount.java' .jar hadoop on linux single-node cluster, maintain getting package org.apache.hadoop.* not exist error.

i know have edit $classpath, have found online saying reference hadoop-core , cannot find hadoop-core anywhere in build (2.4.0). how find org.apache.hadoop.* exist on system?

i sense 'general' reply since have seen many questions on , gives specific /path/to/classpath/, (apparently) different depending on version , build of hadoop.

as said, classpath need depends on version, location, , type of installation. how install separate discussion, assuming have proper hadoop setup installed, it's easy (though admit, have no clue documented).

hadoop provides convenient utility classpath info need. run this

bin/hadoop classpath

this should give info need set classpath compiling code.

java hadoop

No comments:

Post a Comment