Sqooba / hdfs

A native go client for HDFS
MIT License
17 stars 5 forks source link

More specific log output when command fails #7

Open a-pagano opened 6 years ago

a-pagano commented 6 years ago

For example executing a command on a file without the correct permission returns the following (cryptic) error message:

./hdfs cat /tmp/donothavepermissions
getBlockLocations call failed with ERROR_APPLICATION (org.apache.hadoop.security.AccessControlException)

It would be nice to have more indicative error messages like:

cat: Permission denied: user=myuser, access=READ, inode="/tmp/donothavepermissions":otheruser:othergroup:-rwxrwx---