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

zkCli does not execute command passed as arguments

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.4.6
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      In 3.4.5, zkCli executed commands passed on the command line. This command would create the /test znode and exit, with a non-zero exit code if the command failed:

      $ ./zkCli.sh create /test null
      

      This is no longer the case in 3.4.6 - the command is not executed, but zkCli still runs & exits with a zero exit code.

      The interim workaround in bash is to use here documents:

      $ ./zkCli.sh <<EOF
      create /test null
      EOF
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                thecoop1984 Simon Cooper
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: