hadoop3.1启动报错

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.

求解

阅读 5.1k
1 个回答

可能是使用了zsh为shell,可以chsh -s /bin/bash重新使用bash

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题
宣传栏