we want to check the tar.gz files if they are corrupted
for example
I use the file command
file spark2-hdp-yarn-archive.tar.gz
spark2-hdp-yarn-archive.tar.gz: gzip compressed data, was "spark2-hdp-yarn-archive.tar", last modified: Wed Aug 1 15:05:27 2018, max compression
in this case seems that file is ok
but I am not sure if file command is the right approach to check the compressed file
second what are the expected results that indicate the tar.gz file is corrupted ?