Re: Executing a Python program inside Map Function

2013-01-26 Thread Preethi Vinayak Ponangi
It is possible to run a python script from your map function, just make sure the script is available in your DistributedCache. I think you are missing something while designing such a job. You are assuming that your file size is small enough where you can run this script on your local file system

Re: Executing a Python program inside Map Function

2013-01-26 Thread Harsh J
Java provides the Process class to help you launch and read/write from/to processes: http://docs.oracle.com/javase/6/docs/api/java/lang/Process.html. You can use this to spawn your program from your code, to write input into the process's stdin, and to read its output via its stdout/etc.. The hadoo

Executing a Python program inside Map Function

2013-01-25 Thread Sundeep Kambhampati
Is it possible to run a python script inside a Map function which is in java? I what to to run a python script which is on my local disk and I want to use the output of that script for further processing in Map Function to produce Pairs. Can some give me some idea how to do it. Regards Sun