Search code examples
pentahochecksum

How to compute checksum of entire file in Pentaho?


How can we compute checksum for "entire" file data in Pentaho?

I know we can calculate checksum using "Add a checksum" function (But it returns checksum value "per row" for my CSV file input) and "Calculator" function (But it returns null or zero value as a checksum "per row" for my CSV file input)...

Instead I want checksum for the entire file data and NOT per individual row. How can we achieve this?

Thank you


Solution

  • Finally, I was able to compute checksum of the entire file.

    I used "User Defined Class" step and java.security.MessageDigest class in Java to compute and return checksum of a file read using FileInputStream.

    Thanks