Unable to write data from jython evaluator, Streamsets

asked 2018-09-10 22:31:44 -0500

Kevin gravatar image

I am trying to read the data from directory and parse it and write to some other location by using jython evaluator. For this, i tried following code:

import sys

sys.path.append('/usr/lib/python2.7/site-packages')

import feedparser for record in records:

myfeed =feedparser.parse(str(record))

for item in myfeed['items']:

title = item.title

  output.write(title)

i am getting following no data to write:

No output records produced.

edit retag flag offensive close merge delete

Comments

What are you trying to parse? I don't think str(record) will give you anything useful - is your input data in a field in the record?

metadaddy gravatar imagemetadaddy ( 2018-09-11 10:58:39 -0500 )edit