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

Cannot configure split policy in HBase shell

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • documentation
    • None

    Description

      The reference guide explains how to configure split policy in HBase shell(link).

      Configuring the Split Policy On a Table Using HBase Shell
      hbase> create 'test', {METHOD => 'table_att', CONFIG => {'SPLIT_POLICY' => 'org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy'}},
      {NAME => 'cf1'}
      

      But if run that command, shell complains 'An argument ignored (unknown or overridden): CONFIG', and the table description has no split policy.

      hbase(main):067:0* create 'test', {METHOD => 'table_att', CONFIG => {'SPLIT_POLICY' => 'org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy'}}, {NAME => 'cf1'}
      An argument ignored (unknown or overridden): CONFIG
      Created table test
      Took 1.2180 seconds
      
      hbase(main):068:0> describe 'test'
      Table test is ENABLED
      test
      COLUMN FAMILIES DESCRIPTION
      {NAME => 'cf1', DATA_BLOCK_ENCODING => 'NONE', BLOOMFILTER => 'ROW', REPLICATION_SCOPE => '0', COMPRESSION => 'NONE', VERSIONS => '1', TTL => 'FOREVER', MIN_VERSIONS => '0', IN_MEMORY_COMPACTION => 'false', KEEP_DELETED_CELLS => 'FALSE', BLOCKSIZE => '65536', IN_MEMORY => '
      false', BLOCKCACHE => 'true'}
      1 row(s)
      Took 0.0200 seconds
      

      Attachments

        1. HBASE-16076_v1.patch
          1 kB
          Heng Chen
        2. HBASE-16076.patch
          1 kB
          Heng Chen

        Issue Links

          Activity

            People

              chenheng Heng Chen
              y0un5 Youngjoon Kim
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: