• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Executing script from Hadoop

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a requirement in hadoop and I am not able to get it right. I have to execute a UNIX script inside hadoop program and whatever is being echoed by UNIX scripts should be obtained in the hadoop program as output from Unix script. How will it be possible?

In ordinary JAVA program, I am able to execute JAVA program and get the output of unix script. But same is not working in hadoop. Can you please help?
 
Author
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Take a look at Hadoop Streaming: http://wiki.apache.org/hadoop/HadoopStreaming

It will allow you to use UNIX scripts in combination with MapReduce. Input records are supplied to stdin of your scripts, and output records are collected from stdout.
reply
    Bookmark Topic Watch Topic
  • New Topic