Solve the bin/zkServer.sh: 81: /opt/zookeeper-3.4.6/bin/zkEnv.sh: Syn for starting Zookeeper under Ubuntu

When I started Zookeeper 3.4.6 under Ubuntu, it appeared:

bin/zkServer.sh: 81: /opt/zookeeper-3.4.6/bin/zkEnv.sh: Syntax error: "(" unexpected (expecting "fi")


Various environment configurations are correct, but the startup fails.

 

reason:

Later, I found major websites and came to the conclusion that there is a problem with Ubuntu's default shell.


solve:

use:

dpkg-reconfigure dash

 

Choose NO

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326942045&siteId=291194637
Recommended