简体   繁体   中英

Check a mongodb connection with Pentaho

I would like to check on my Pentaho (Kettle) transformation if the mongodb database is available. Currently, I have an error like this when I put a wrong configuration :

2013/04/30 17:10:07 - MongoDb Output.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : Unexpected error
2013/04/30 17:10:07 - MongoDb Output.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : com.mongodb.MongoException$Network: can't say something
......

I want to put all the data in a file instead of the mongodb database if this database isn't available. I don't know if this is possible with Pentaho...

Any idea ?

Thank you

If you make hop from your TABLE_OUTPUT step to a TEXT_FILE step, it is automatically marked as error handeling hop. The former data stream stays the same so if you get error while connecting or some else, you cam pass the data to the file specified in the TEXT_FILE step.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM