This problem is also in the development project often encountered a problem, online provides a lot of methods, but I found that many do not apply, here are recommended two ways, a sure no problem, is more trouble, the other is suitable for Fatjar to package, but I did not succeed, The reason for estimating the Eclipse import plugin under Ubuntu may not be the same as under Windows
Way One:
Put all the third-party jar packages into the master node and the directory hadoop-share-hadoop-cmmon-lib from the node, restart the Hadoop cluster so that the third-party jar package starts up like a jar package in Hadoop, which I discovered through the boot log, The startup log can be viewed through the web:master:8088 Web site.
Way two: Through the third plugin Fatjar to package, but this way I am packaged under Ubuntu did not succeed, there is no so-called Export-other-fatjar option, have time to try to get this way
About the MapReduce project under Eclipse packaged into a jar package (including third-party jar packages)