[ 
https://issues.apache.org/jira/browse/HBASE-2984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12926429#action_12926429
 ] 

Kannan Muthukkaruppan commented on HBASE-2984:
----------------------------------------------

JD:

Was trying this patch, and ran into an error with Compression/BloomFilter 
settings, because  family.setBloomFilterType()  & family.setCompressionType() 
expect enum instead of string.

{code}
hbase(main):006:0> alter 't1', {NAME => 'f1', VERSIONS=> 2, COMPRESSION => 
'LZO'}
alter 't1', {NAME => 'f1', VERSIONS=> 2, COMPRESSION => 'LZO'}

ERROR: for method HColumnDescriptor.setCompressionType expected [class 
org.apache.hadoop.hbase.io.hfile.Compression$Algorithm]; got: 
[java.lang.String]; error: argument type mismatch
{code}

So the patch currently breaks 'alter' & 'create'  from HBase shell if 
compression or bloom needs to be specified.







> [shell] Altering a family shouldn't reset to default unchanged attributes
> -------------------------------------------------------------------------
>
>                 Key: HBASE-2984
>                 URL: https://issues.apache.org/jira/browse/HBASE-2984
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Jean-Daniel Cryans
>            Assignee: Jean-Daniel Cryans
>            Priority: Blocker
>             Fix For: 0.90.0
>
>         Attachments: 2984-meta-offline-fixer.patch, HBASE-2984.patch
>
>
> I changed the replication on a family that was also VERSIONS => 1 and 
> COMPRESSION => LZO. I forgot that you have to respecify everything everytime 
> you alter a family, so both were reset to 3 and NONE. Then the regions were 
> compacted... and it has been splitting for about 20 minutes now. Fortunately 
> this is our MR environment so our web site isn't affected, but it's still a 
> major pain. Oh and also the table cannot be disabled to be re-altered since 
> split parents are always present (I hope it'll stop splitting before 
> midnight).
> The shell should use the old values for attributes that aren't changed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to