Get the App
SLTechnology News&Howtos  ›  Servers  › 

Operation methods introduced by the third-party jar package of hadoop2.2.0

Shulou Source: shulou.com Published: 2022-06-01 07:02:21 10月02日 Update

This article introduces the operation method of hadoop2.2.0 third-party jar package, the content is very detailed, interested friends can refer to, hope to be helpful to you.

It is very likely that in hadoop job, we will introduce third-party packages, which are temporarily effective:

Package your own program with the class file of the third-party jar package into a jar. There is an eclipse plug-in like fatjar that can be easily packaged.

Copy third-party jar packages to all nodes in the cluster under ${HADOOP_HOME} / lib or ${JAVA_HOME} / ext

Put the third-party jar package in a directory called lib, and when you export the jar package (the guide package that comes with Eclipse) through eclipse, package this lib directory together so that when you run the MapReduce task, hadoop can load the third-party classes in the lib directory

The third-party package is specified with the-libjars run parameter, but it is not valid in my hadoop2.2.0 cluster and is still under consideration.

This is the end of the operation method introduced by the third-party jar package of hadoop2.2.0. I hope the above content can be helpful to everyone and learn more knowledge. If you think the article is good, you can share it for more people to see.

Tags: Third party method directory content more cluster help run good effective task interest parameter buddy partner copy plug-in file article knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Linux Microsoft Docker MariaDB