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

Backport missing options in shell

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.6
    • 1.3.2, 1.2.7
    • shell
    • None
    • Reviewed
    • Add missing constants configuration in shell thru backport.

    Description

      Recently I wanna try to alter the split policy for a table on my cluster which version is 1.2.6 and as far as I know The SPLIT_POLICY is an attribute of the HTable so I run the command in hbase shell console below.
      alter 'tablex',SPLIT_POLICY => 'org.apache.hadoop.hbase.regionserver.DisabledRegionSplitPolicy'
      However, It gave the information like this and I confused
      Unknown argument ignored: SPLIT_POLICY
      Updating all regions with the new schema...
      So I check the source code That admin.rb might miss the setting for this argument .
      htd.setMaxFileSize(JLong.valueOf(arg.delete(MAX_FILESIZE))) if arg[MAX_FILESIZE]
      htd.setReadOnly(JBoolean.valueOf(arg.delete(READONLY))) if arg[READONLY]
      ...
      So I think it may be a bug ,is it?

      Attachments

        1. HBASE-19340-branch-1.2.batch
          9 kB
          zhaoyuan
        2. HBASE-19340-branch-1.2.batch
          6 kB
          zhaoyuan
        3. HBASE-19340-branch-1.3.batch
          11 kB
          zhaoyuan

        Issue Links

          Activity

            People

              smartZY zhaoyuan
              smartZY zhaoyuan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: