Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace sh with bash in systemd unit #113

Merged
merged 1 commit into from
Mar 7, 2018

Conversation

marfx000
Copy link
Contributor

Since zookeeper v3.4.6 zkEnv.sh uses bash as a shebag. And moreover the script contains operations with arrays which sh (dash) doesn't support. Because of it systemd unit doesn't work and fails with following errors:

/bin/sh: 81: /opt/zookeeper-3.4.11/bin/zkEnv.sh: Syntax error: "(" unexpected (expecting "fi")
Error: Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeerMain

This patch replaces sh with bash in sytemd unit thereby fixes that problem.

Since zookeeper v3.4.6 zkEnv.sh uses bash as a shebag. Moreover
it contains operations with arrays which sh (dash) doesn't
support. Because of it systemd unit doesn't work and fails with
following errors:
/bin/sh: 81: /opt/zookeeper-3.4.11/bin/zkEnv.sh: Syntax error: "(" unexpected (expecting "fi")
Error: Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeerMain
This patch replaces sh with bash in sytemd unit thereby fixes
that problem.
@ghost
Copy link

ghost commented Mar 5, 2018

+1 - This impacted us during an archive install on Xenial.

@deric deric added the bug label Mar 7, 2018
@deric
Copy link
Owner

deric commented Mar 7, 2018

Thanks for the PR! I'll draft a new patch-release soon.

@deric deric merged commit bc53aad into deric:master Mar 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants