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

zkCli does not execute command passed as arguments

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 3.4.6
    • None
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved: