title: Port existing php application in spark streaming
body: <p>We have a huge existing application in php which </p>
  
  <ol>
  <li>Accepts a log file</li>
  <li>Initialises all the database, in-memory store resources </li>
  <li>Processes every line</li>
  <li>Creates a set of output files</li>
  </ol>
  
  <p>Above process happens per input file.
  Input files are written by a kafka consumer. Is it possible to fit this application in spark streaming by somehow not porting all the code in java? For example in following manner</p>
  
  <ol>
  <li>get a message from kafka topic</li>
  <li>Pass this message to spark streaming</li>
  <li>Spark streaming somehow interacts with legacy app and generates output</li>
  <li>spark then writes output again in kafka</li>
  </ol>
  
  <p>Whatever I have just mentioned is too high level. I just want to know whether there's a possibility of doing this by not recoding existing app in java? And can anyone please tell me roughly how this can be done?</p>