Hadoop Cluster Run JNI program

Source: Internet
Author: User

To run a JNI program on a Hadoop cluster, the first thing to do is to debug the program on a stand-alone computer until the JNI program is properly run, and then porting to the Hadoop cluster is a good deal.

The way Hadoop runs the program is through the jar package, so we need to package all the class files into a jar package. There is no need to include a dynamic link library in the packaging process.

Before running a program in a cluster, Hadoop passes the jar package first to all nodes and then starts running. At this stage, we can pass the dynamic link library as an attachment and a jar package to all nodes at the same time. The method is to specify the-files parameter for the jar command. The order is as follows:

Hadoop jarsegment.jar segment-files./bin/lib***.so Input Output

With this command, both the jar package and the dynamic-link library are passed to all nodes, and then the MapReduce task is started.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.