hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anh Pham <pham3...@gmail.com>
Subject Re: Running a mapreduce class in another Java program
Date Fri, 06 Dec 2013 17:31:35 GMT
in your second java program's java file, import classes you want from
the 1st mapreduce class.

import packagename.class;
...


compile:
java -cp /<path>/yourMRClass.jar yourSecondClass



On Fri, Dec 6, 2013 at 11:30 AM, Anseh Danesh <anseh.danesh@gmail.com>wrote:

> Hi all.
> I write a mapreduce class and create a jar file from the class. now I want
> to use this jar in another java program. can anyone help me please how
> could I do this?  I import the jar file into my second java program and now
> I want to call its method.. how can I do this? thanks
>
>

Mime
View raw message