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

Document how to set the split policy on a given table

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • documentation
    • None
    • Reviewed

    Description

      Need to document in the ref guide how to set/change the region split policy for a single table user the API and the HBase shell as noted below as an example.
      Using Java:
      HTableDescriptor tableDesc = new HTableDescriptor("test");
      tableDesc.setValue(HTableDescriptor.SPLIT_POLICY, ConstantSizeRegionSplitPolicy.class.getName());
      tableDesc.addFamily(new HColumnDescriptor(Bytes.toBytes("cf1")));
      admin.createTable(tableDesc);
      Using HBase Shell:
      create 'test', {METHOD => 'table_att', CONFIG => {'SPLIT_POLICY' => 'org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy'}},

      {NAME => 'cf1'}

      Attachments

        1. HBASE-12701-asciidoc.patch
          9 kB
          M Linville
        2. HBASE-12701.patch
          3 kB
          M Linville

        Issue Links

          Activity

            People

              misty M Linville
              misty M Linville
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: