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

Allow specialization of quorum config parsing (e.g. variable expansion in zoo.cfg)

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.1.1, 3.2.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      We would like to define certain parts of ZooKeeper's configuration using variables that get substituted. For example, we want the ZooKeeper quorum to be able to use a dataDir configured per user. In other words, something like:

      tickTime=2000
      dataDir=/tmp/zookeeper-${user.name}
      clientPort=2181
      initLimit=5
      syncLimit=2
      server.1=zoo1:2888:3888
      server.2=zoo2:2888:3888
      server.3=zoo3:2888:3888

      I think Java already has a system for configuration that allows something like this using Properties?

        Attachments

        1. zookeeper-279.patch
          1 kB
          Jean-Daniel Cryans
        2. HBaseQPC.java
          3 kB
          Jean-Daniel Cryans
        3. zookeeper-279.patch
          2 kB
          Patrick Hunt

          Issue Links

            Activity

              People

              • Assignee:
                jdcryans Jean-Daniel Cryans
                Reporter:
                nitay Nitay Joffe
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: