Run Hadoop jar third-party jar package dependencies

After packaging the MapReduce program written by yourself into a jar, when running the hadoop jar command, if you want to rely on a third-party jar package, a ClassNotFoundException will be displayed....

Solution:

1. Create a new lib folder, and add the dependent third-party jars 2. Open the packaged jar package of the MapReduce program (eg: jmdata

-operatives-mrs-access.jar) with WinRAR, and then drag the lib package to jmdata-operatives-mrs-access.jar in.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327059771&siteId=291194637