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

The HBase thrift service ignores XML configuration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.94.6
    • 0.98.0, 0.95.2, 0.94.10
    • Thrift
    • None
    • Ubuntu 12.04.2 LTS

    Description

      I put the following configuration in my hbase-site.xml:

        <property>
          <name>hbase.regionserver.thrift.compact</name>
          <value>true</value>
        </property>
        <property>
          <name>hbase.regionserver.thrift.framed</name>
          <value>true</value>
        </property>
      

      But the configuration is ignored due to the following lines in ThriftServer.java around lines 197:

          conf.setBoolean(
              ThriftServerRunner.COMPACT_CONF_KEY, cmd.hasOption(COMPACT_OPTION));
          conf.setBoolean(
              ThriftServerRunner.FRAMED_CONF_KEY, cmd.hasOption(FRAMED_OPTION));
      

      The configuration values are being unconditionally set to the defaults programmatically.

      Attachments

        1. HBASE-8695.patch
          1 kB
          Lars George

        Issue Links

          Activity

            People

              larsgeorge Lars George
              b4hand Brandon Forehand
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: