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.

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.