- Where Developers Learn, Share, & Build Careers
Can I type my own custom static method in the map-reduce that I use every key-value pair Would you like to call me who enters my Mapper?
You can do this and I do this all the time. The methods you can call are either static or not.
Actually:
If you call an external code from the code included in your project, when you export the project to .jar file then bundle with your code.
If you refer to the methods from a .jar file included in the build path for your project, you need to give that cluster the name of the .jar file on every node The job runs, and edit your HADOOP_CLASSPATH variable in your $ HADOOP_HOME / conf / hasoop-env.sh file on the server and restart your cluster. Otherwise you will not get a class that has not found a mistake.
An example is:
export HBASE_CLASSPATH = / path / to / one / file.jar: / path / to / other / file.jar < / Pre>
Comments
Post a Comment