hadoop启动报错
配置文件都写好了
然后启动的时候
[root@master logs]# start-dfs.sh
Starting namenodes on [master]
Last login: Wed Jul 4 16:30:19 CST 2018 on pts/0
bash v3.2+ is required. Sorry.
Starting datanodes
Last login: Wed Jul 4 16:31:04 CST 2018 on pts/0
bash v3.2+ is required. Sorry.
Starting secondary namenodes [master]
Last login: Wed Jul 4 16:31:04 CST 2018 on pts/0
bash v3.2+ is required. Sorry.
显示需要bash版本在v3.2以上
但是我看了我的bash版本满足要求的
GNU bash, version 4.2.46(2)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
求解
可能是使用了
zsh
为shell,可以chsh -s /bin/bash
重新使用bash