Re: Execute a Map/Reduce Job Jar from Another Java Program.

2012-02-05 Thread Bharath Mundlapudi
Essentially, there are two ways to achieve the functionality you need. 1. By forking your MR job from your java application as Evans suggested. Look at java APIs for Runtime.exec or ProcessBuilder. 2. In your java application, you write the complete main method of your test.jar - which will hav

Re: Execute a Map/Reduce Job Jar from Another Java Program.

2012-02-03 Thread Robert Evans
It looks like there is something wrong with your configuration where the default file system is coming back as the local file system, but you are passing in an HDFS URI fs.exists(Path), I cannot tell for sure because I don't have access to com.amd.kdf.protobuf.SequentialFileDriver.main(Sequenti

Re: Execute a Map/Reduce Job Jar from Another Java Program.

2012-02-02 Thread Robert Evans
What happens? Is there an exception, does nothing happen? I am curious. Also how did you launch your other job that is trying to run this one. The hadoop script sets up a lot of environment variables classpath etc to make hadoop work properly, and some of that may not be set up correctly to

Re: Execute a Map/Reduce Job Jar from Another Java Program.

2012-02-02 Thread Harsh J
Moving to common-user. Common-dev is for project development discussions, not user help. Could you elaborate on how you used RunJar? What arguments did you provide, and is the target jar a runnable one or a regular jar? What error did you get? On Thu, Feb 2, 2012 at 8:44 PM, abees muhammad wrote