Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All
Can I save output in run-window to txt file ?
Try to do it through Stats&logs settings
but only statistics gathered (may be also log)
2012-10-05 18:10:28;TCd7dK;TCd7dK;TCd7dK;6132;THINKBI_DEV;j_java01;_b-_1UA4iEeKoMfxGjj3v1A;0.1;Default;;begin;;
and I need full output
including logrow and print in java
the job starts at: 2013-05-04 17:02:43
the job starts at: 2013-05-04 17:02:43
1|shong
Exception in component tFileInputDelimited_1
java.lang.NumberFormatException: For input string: "a"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:449)
at java.lang.Integer.parseInt(Integer.java:499)
at routines.system.ParserUtils.parseTo_int(ParserUtils.java:87)
at routines.system.ParserUtils.parseTo_Integer(ParserUtils.java:94)
at community.tredirectoutputdemo_0_1.tredirectOutputDemo$1RowHelper_tFileInputDelimited_1.valueToConn(tredirectOutputDemo.java:539)
at community.tredirectoutputdemo_0_1.tredirectOutputDemo.tFileInputDelimited_1Process(tredirectOutputDemo.java:588)
at community.tredirectoutputdemo_0_1.tredirectOutputDemo.runJobInTOS(tredirectOutputDemo.java:1102)
at community.tredirectoutputdemo_0_1.tredirectOutputDemo.main(tredirectOutputDemo.java:954)
disconnected
To achieve your needs we would require a new component, It may be possible
but it would work a little bit different than what you want. The redirection of outputs
can only be done to Streams, not to Variables. In this case we would need to open a
memory stream and expose some fake Talend variables in the component for you to
get the content logged so far.
To achieve what you need I strongly suggest to write a "top" job and put the main
logic inside a subjob. This subjob would use the component to redirect the output to a
file. Then you read the file in the top job, after returning from subjob, and email the
result. This way you avoid access problems trying to read the stream while the program
could be trying to write to it. This is the way I use this component to notify my team of
errors in ETL jobs with this component.
Hope this can help you.
Hi Fedor
Glad to see you come back to your topic near one year later.
This component is not included in Talend now, but I agree with you that this component is very useful, we will consider to add it to Talend components family in future.
I am sure this component do also works in v5.3.1, brazabr don't update the extension on Talend Exchange yet.
Shong