Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-4072

Deprecate/disable and remove support for reading ZooKeeper zoo.cfg files from the classpath

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.90.0
    • 0.95.0, 2.0.0
    • None
    • None
    • Incompatible change, Reviewed
    • Hide
      The Apache ZooKeeper config file zoo.cfg will no longer be read when instantiating a HBaseConfiguration object, as it causes various inconsistency issues. Instead, users have to specify all HBase-relevant ZooKeeper properties in the hbase-site.xml using the various "hbase.zookeeper" prefixed properties. For example, specify "hbase.zookeeper.quorum" to provide a ZK quorum server list.

      To enable zoo.cfg reading, for which support may be removed in a future release, set the property "hbase.config.read.zookeeper.config" to true in the hbase-site.xml at the client and servers like so:

      <property>
        <name>hbase.config.read.zookeeper.config</name>
        <value>true</value>
        <description>
              Set to true to allow HBaseConfiguration to read the
              zoo.cfg file for ZooKeeper properties. Switching this to true
              is not recommended, since the functionality of reading ZK
              properties from a zoo.cfg file has been deprecated.
        </description>
      </property>
      Show
      The Apache ZooKeeper config file zoo.cfg will no longer be read when instantiating a HBaseConfiguration object, as it causes various inconsistency issues. Instead, users have to specify all HBase-relevant ZooKeeper properties in the hbase-site.xml using the various "hbase.zookeeper" prefixed properties. For example, specify "hbase.zookeeper.quorum" to provide a ZK quorum server list. To enable zoo.cfg reading, for which support may be removed in a future release, set the property "hbase.config.read.zookeeper.config" to true in the hbase-site.xml at the client and servers like so: <property>   <name>hbase.config.read.zookeeper.config</name>   <value>true</value>   <description>         Set to true to allow HBaseConfiguration to read the         zoo.cfg file for ZooKeeper properties. Switching this to true         is not recommended, since the functionality of reading ZK         properties from a zoo.cfg file has been deprecated.   </description> </property>

    Description

      This issue was found by Lars: http://search-hadoop.com/m/n04sthNcji2/zoo.cfg+vs+hbase-site.xml&subj=Re+zoo+cfg+vs+hbase+site+xml

      Lets fix the inconsistency found and fix the places where we use non-zk attribute name for a zk attribute in hbase (There's only a few places that I remember – maximum client connections is one IIRC)

      Attachments

        1. HBASE-4072.patch
          6 kB
          Harsh J
        2. HBASE-4072.patch
          9 kB
          Harsh J
        3. HBASE-4072.patch
          11 kB
          Harsh J

        Issue Links

          Activity

            People

              qwertymaniac Harsh J
              stack Michael Stack
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: