You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by Savvas Andreas Moysidis <sa...@gmail.com> on 2015/01/15 17:15:29 UTC
Syntax error: "(" unexpected (expecting "fi")
Hello There,
I have downloaded the latest Zookeeper file but when I try to run this
using the following command:
temp-dev/zookeeper-3.4.6/bin$ sh zkServer.sh start
I am getting the following error:
zkServer.sh: 81: /home/javadev/temp-dev/zookeeper-3.4.6/bin/zkEnv.sh:
Syntax error: "(" unexpected (expecting "fi")
I've seen a number of threads (
https://issues.apache.org/jira/browse/ZOOKEEPER-1937) all suggesting to
change the shebang to #!/bin/bash but that doesn't seem to work (still
gives the same error).
Some info about the environment I'm using:
Running lsb_release -s -d prints:
Ubuntu 14.04.1 LTS
and running java -version prints:
java version "1.8.0_25"
Any ideas?
Thanks,
Savvas
RE: Syntax error: "(" unexpected (expecting "fi")
Posted by Flavio Junqueira <fp...@yahoo.com.INVALID>.
I'm not sure I'm reading this right, but why are you putting sh I'm front of the script?
-Flavio
-----Original Message-----
From: "Savvas Andreas Moysidis" <sa...@gmail.com>
Sent: 1/15/2015 4:39 PM
To: "user@zookeeper.apache.org" <us...@zookeeper.apache.org>
Subject: Syntax error: "(" unexpected (expecting "fi")
Hello There,
I have downloaded the latest Zookeeper file but when I try to run this
using the following command:
temp-dev/zookeeper-3.4.6/bin$ sh zkServer.sh start
I am getting the following error:
zkServer.sh: 81: /home/javadev/temp-dev/zookeeper-3.4.6/bin/zkEnv.sh:
Syntax error: "(" unexpected (expecting "fi")
I've seen a number of threads (
https://issues.apache.org/jira/browse/ZOOKEEPER-1937) all suggesting to
change the shebang to #!/bin/bash but that doesn't seem to work (still
gives the same error).
Some info about the environment I'm using:
Running lsb_release -s -d prints:
Ubuntu 14.04.1 LTS
and running java -version prints:
java version "1.8.0_25"
Any ideas?
Thanks,
Savvas