Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-982

zkServer.sh won't start zookeeper on an ubuntu 10.10 system due to a bug in the startup script.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Invalid
    • Affects Version/s: 3.3.1
    • Fix Version/s: 3.5.0
    • Component/s: scripts
    • Labels:
      None

      Description

      When running "zkServer.sh start" I get these error messages:

      ====
      $sudo sh bin/zkServer.sh start
      MX enabled by default
      bin/zkServer.sh: 69: cygpath: not found
      Using config:
      grep: : No such file or directory
      Starting zookeeper ...
      STARTED
      $ Invalid config, exiting abnormally
      ====

      The "Invalid config..." text is output from the server which terminates immediately after this message has been printed.

      The fix is easy: Inside zkServer.sh change the line
      ====
      if $cygwin
      ====

      into

      ====
      if [ -n "$cygwin" ]
      ====

      This fixes the problem and makes the server run

        Attachments

        1. ZOOKEEPER-982.patch
          0.8 kB
          Bjørn Remseth

          Activity

            People

            • Assignee:
              thkoch Thomas Koch
              Reporter:
              la3lma Bjørn Remseth
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: