Fsck command is not working in cloudera

Hi Guys,

I am trying to use the hdfs fsck command to get the metadata of a hive table but I am getting the below error.PFA for the error.

I am using this command:

hdfs fsck ‘path of the file’ -files -locations -blocks

It should work if you try hdfs fsck /user/hive/warehouse/retail_db.db/orders_another. Though not sure why it is not working when the path is given that way…

Do you have files in that location?

First run hadoop fs -ls command on that location and see if there are files.

Also try sudo -u hdfs hdfs fsck ....

Hi Itversity and sriikb88

Its working now thanks for the help.