Hello,
I have a program which creates a report out of our database. It used to write to a file,
but I added an option that instead it can also write its output to standard output. The
goal is to use Kettle as a filter. While I realize that I could write the file, then let Kettle
read the contents from the (zipped) file, I would really like to forego the use of the file.
So I created a transformation which starts the program through the 'Execute a process'
step. This succeeds. What does not succeed is to get the output back as a stream of
rows. I have tried all possible combinations for the output line delimiter ($[0A], $[0D],
$[0A,0D] and $[0D,0A]) but it insists on returning all output in a single line. However,
I do need to filter from about 1000000 lines.
Are there other options for reading the output from a process in a transformation? I
searched, but found none. Using Java to link a process seems to defeat the purpose
of Kettle, that is, to have a relatively easy environment to link up and process data
streams. Besides, the program generating the data is written in C#, so if I have to
resort to Java to make Kettle work, I might as well proceed to drop Kettle for the
job and write the rest of the process in C#.
Regards,
Jurgen
(I wanted to add my .ktr file as an example, but the firewall here does not let me)
I have a program which creates a report out of our database. It used to write to a file,
but I added an option that instead it can also write its output to standard output. The
goal is to use Kettle as a filter. While I realize that I could write the file, then let Kettle
read the contents from the (zipped) file, I would really like to forego the use of the file.
So I created a transformation which starts the program through the 'Execute a process'
step. This succeeds. What does not succeed is to get the output back as a stream of
rows. I have tried all possible combinations for the output line delimiter ($[0A], $[0D],
$[0A,0D] and $[0D,0A]) but it insists on returning all output in a single line. However,
I do need to filter from about 1000000 lines.
Are there other options for reading the output from a process in a transformation? I
searched, but found none. Using Java to link a process seems to defeat the purpose
of Kettle, that is, to have a relatively easy environment to link up and process data
streams. Besides, the program generating the data is written in C#, so if I have to
resort to Java to make Kettle work, I might as well proceed to drop Kettle for the
job and write the rest of the process in C#.
Regards,
Jurgen
(I wanted to add my .ktr file as an example, but the firewall here does not let me)