there maybe many reason to cause this,today our issue is that, if you execute hive –database dbname –e'query' it report error: can not initialize metastoreclient. root cause: kerbos authentication fail, user lose the permission access the hdfs. solut…