microsoft / hdfs-mount

A tool to mount HDFS as a local Linux file system
Other
286 stars 64 forks source link

how to support hdfs Authorization? #25

Open 2s opened 7 years ago

2s commented 7 years ago

FATAL_UNAUTHORIZED (org.apache.hadoop.security.authorize.AuthorizationException)

junjieqian commented 7 years ago

Can you describe the usage? We do not have this problem before. The connection to hdfs is done by Colin's hdfs module

2s commented 7 years ago

usage:

  1. export HADOOP_USER_NAME=my_username:password,supergroup
  2. hdfs-mount -logLevel 2 hostname:port hdfs

log: Warning: 2017/06/14 14:09:59 RetryPolicy.go:89: Connect: ip:port: stat /$: getFileInfo call failed with FATAL_UNAUTHORIZED (org.apache.hadoop.security.authorize.AuthorizationException) -> failed attempt #8: retrying in 7.335958981s

junjieqian commented 7 years ago

I have not seen this error before. hdfs-mount relies on Colin's hdfs module to connect with HDFS. So to narrow-down the issue, can you try running Colin's hdfs to see if you still have the authorization error?