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

Mike Drob commented on HBASE-18419:
-----------------------------------

[~chia7712] - With the new immutable Descriptors and the builder pattern, I 
find myself missing a lot of the old style {{new TableDescriptor(tableName)}} 
methods for their simplicity.

The equivalent call chain now would be 
{{TableDescriptorBuilder.newBuilder(tableName).build()}}
Similar for CFD: 
{{ColumnFamilyDescriptorBuilder.newBuilder(columnName).build()}}

What do you think of having {{ColumnFamilyDescriptor.forColumn(String)}} and 
{{.forColumn(byte[])}}, etc.? If you agree I'll file a new JIRA for it and 
provide a patch later.

> Update IntegrationTestIngestWithMOB and Actions to use ColumnFamily builders 
> for modification
> ---------------------------------------------------------------------------------------------
>
>                 Key: HBASE-18419
>                 URL: https://issues.apache.org/jira/browse/HBASE-18419
>             Project: HBase
>          Issue Type: Sub-task
>          Components: integration tests
>    Affects Versions: 2.0.0-alpha-1
>            Reporter: Mike Drob
>            Assignee: Mike Drob
>            Priority: Critical
>             Fix For: 3.0.0, 2.0.0-alpha-2
>
>         Attachments: HBASE-18419.patch, HBASE-18419.v2.patch, 
> HBASE-18419.v3.patch
>
>
> When attempting to run ITIWM against a cluster I get the following error:
> {noformat}
> java.lang.UnsupportedOperationException: HColumnDescriptor is read-only
>       at 
> org.apache.hadoop.hbase.client.ImmutableHColumnDescriptor.getDelegateeForModification(ImmutableHColumnDescriptor.java:44)
>       at 
> org.apache.hadoop.hbase.HColumnDescriptor.setMobEnabled(HColumnDescriptor.java:735)
>       at 
> org.apache.hadoop.hbase.IntegrationTestIngestWithMOB.initTable(IntegrationTestIngestWithMOB.java:122)
>       at 
> org.apache.hadoop.hbase.IntegrationTestIngest.setUpCluster(IntegrationTestIngest.java:92)
>       at 
> org.apache.hadoop.hbase.IntegrationTestBase.setUp(IntegrationTestBase.java:148)
>       at 
> org.apache.hadoop.hbase.IntegrationTestBase.doWork(IntegrationTestBase.java:131)
>       at 
> org.apache.hadoop.hbase.util.AbstractHBaseTool.run(AbstractHBaseTool.java:154)
>       at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
>       at 
> org.apache.hadoop.hbase.IntegrationTestIngestWithMOB.main(IntegrationTestIngestWithMOB.java:153)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to