ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-1335

Add support for --config to zkEnv.sh to specify a config directory different than what is expected

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.0
    • Component/s: None
    • Labels:
      None

      Description

      zkEnv.sh expects ZOOCFGDIR env variable set. If not it looks for the conf dir in the ZOOKEEPER_PREFIX dir or in /etc/zookeeper. It would be great if we can support --config option where at run time you could specify a different config directory. We do the same thing in hadoop.

      With this you should be able to do

      /usr/sbin/zkServer.sh --config /some/conf/dir start|stop

      1. ZOOKEEPER-1335.patch
        0.5 kB
        Arpit Gupta
      2. ZOOKEEPER-1335.patch
        1 kB
        Arpit Gupta

        Activity

        Mahadev konar made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Patrick Hunt made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Arpit Gupta made changes -
        Attachment ZOOKEEPER-1335.patch [ 12508785 ]
        Patrick Hunt made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Arpit Gupta made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Mahadev konar made changes -
        Assignee Arpit Gupta [ arpitgupta ]
        Mahadev konar made changes -
        Fix Version/s 3.5.0 [ 12316644 ]
        Arpit Gupta made changes -
        Description zkEnv.sh expects ZOOCFGDIR env variable set. If not it looks for the conf dir in the ZOOKEEPER_PREFIX dir or in /etc/zookeeper. It would be great if we can support --config option where at run time you could specify a different config directory. We do the same thing in hadoop. zkEnv.sh expects ZOOCFGDIR env variable set. If not it looks for the conf dir in the ZOOKEEPER_PREFIX dir or in /etc/zookeeper. It would be great if we can support --config option where at run time you could specify a different config directory. We do the same thing in hadoop.

        With this you should be able to do

        /usr/sbin/zkServer.sh --config /some/conf/dir start|stop
        Arpit Gupta made changes -
        Field Original Value New Value
        Attachment ZOOKEEPER-1335.patch [ 12508135 ]
        Arpit Gupta created issue -

          People

          • Assignee:
            Arpit Gupta
            Reporter:
            Arpit Gupta
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development