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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1.0
    • 3.1.1, 3.2.0
    • None
    • None
    • 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
          2 kB
          Patrick D. Hunt
        2. HBaseQPC.java
          3 kB
          Jean-Daniel Cryans
        3. zookeeper-279.patch
          1 kB
          Jean-Daniel Cryans

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: