Switching the user can not enter su hdfs
出现This account is currently not available.
Hdfs to see account information with vi
# cat /etc/passwd|grep hdfs
hdfs:x:995:992:Hadoop HDFS:/var/lib/hadoop-hdfs:/sbin/nologin
It found that the shell is "/ sbin / nologin", it needs to be changed to "/ bin / bash"
# vim /etc/passwd
After modification, save and exit
Such re su hdfs on the inside.
modify
carry out.