You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Sergey Shelukhin (JIRA)" <ji...@apache.org> on 2012/10/30 00:00:13 UTC
[jira] [Created] (HBASE-7065) alter table with multiple actions
should do just one schema update
Sergey Shelukhin created HBASE-7065:
---------------------------------------
Summary: alter table with multiple actions should do just one schema update
Key: HBASE-7065
URL: https://issues.apache.org/jira/browse/HBASE-7065
Project: HBase
Issue Type: Improvement
Components: shell
Affects Versions: 0.96.0
Reporter: Sergey Shelukhin
Priority: Minor
In the shell, when one runs alter command with multiple things to do (e.g. "alter 't1', 'f1', { NAME => 'f2', VERSIONS => 5 }, { 'delete' => 'f3' }, MAX_FILESIZE => 1232353") the shell does the schema update after each action.
I'd assume it takes a long time on large clusters, and can also be unexpected from the logical perspective, especially if it fails in the middle for example.
Should it do one schema update instead?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HBASE-7065) alter table with multiple actions
should do just one schema update (shell)
Posted by "Sergey Shelukhin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-7065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Shelukhin updated HBASE-7065:
------------------------------------
Summary: alter table with multiple actions should do just one schema update (shell) (was: alter table with multiple actions should do just one schema update)
> alter table with multiple actions should do just one schema update (shell)
> --------------------------------------------------------------------------
>
> Key: HBASE-7065
> URL: https://issues.apache.org/jira/browse/HBASE-7065
> Project: HBase
> Issue Type: Improvement
> Components: shell
> Affects Versions: 0.96.0
> Reporter: Sergey Shelukhin
> Priority: Minor
>
> In the shell, when one runs alter command with multiple things to do (e.g. "alter 't1', 'f1', { NAME => 'f2', VERSIONS => 5 }, { 'delete' => 'f3' }, MAX_FILESIZE => 1232353") the shell does the schema update after each action.
> I'd assume it takes a long time on large clusters, and can also be unexpected from the logical perspective, especially if it fails in the middle for example.
> Should it do one schema update instead?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HBASE-7065) alter table with multiple actions
should do just one schema update (shell)
Posted by "Ted Yu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-7065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13486473#comment-13486473 ]
Ted Yu commented on HBASE-7065:
-------------------------------
I think one schema update is better.
The example above isn't syntactically correct though.
To change MAX_FILESIZE, here is the syntax:
{code}
hbase> alter 't1', METHOD => 'table_att', MAX_FILESIZE => '134217728'
{code}
> alter table with multiple actions should do just one schema update (shell)
> --------------------------------------------------------------------------
>
> Key: HBASE-7065
> URL: https://issues.apache.org/jira/browse/HBASE-7065
> Project: HBase
> Issue Type: Improvement
> Components: shell
> Affects Versions: 0.96.0
> Reporter: Sergey Shelukhin
> Priority: Minor
>
> In the shell, when one runs alter command with multiple things to do (e.g. "alter 't1', 'f1', { NAME => 'f2', VERSIONS => 5 }, { 'delete' => 'f3' }, MAX_FILESIZE => 1232353") the shell does the schema update after each action.
> I'd assume it takes a long time on large clusters, and can also be unexpected from the logical perspective, especially if it fails in the middle for example.
> Should it do one schema update instead?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HBASE-7065) alter table with multiple actions
should do just one schema update (shell)
Posted by "Sergey Shelukhin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-7065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13486487#comment-13486487 ]
Sergey Shelukhin commented on HBASE-7065:
-----------------------------------------
Sorry, it will be, after HBASE-6894 :)
The general point still applies
> alter table with multiple actions should do just one schema update (shell)
> --------------------------------------------------------------------------
>
> Key: HBASE-7065
> URL: https://issues.apache.org/jira/browse/HBASE-7065
> Project: HBase
> Issue Type: Improvement
> Components: shell
> Affects Versions: 0.96.0
> Reporter: Sergey Shelukhin
> Priority: Minor
>
> In the shell, when one runs alter command with multiple things to do (e.g. "alter 't1', 'f1', { NAME => 'f2', VERSIONS => 5 }, { 'delete' => 'f3' }, MAX_FILESIZE => 1232353") the shell does the schema update after each action.
> I'd assume it takes a long time on large clusters, and can also be unexpected from the logical perspective, especially if it fails in the middle for example.
> Should it do one schema update instead?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HBASE-7065) alter table with multiple actions
should do just one schema update (shell)
Posted by "Ted Yu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-7065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13486493#comment-13486493 ]
Ted Yu commented on HBASE-7065:
-------------------------------
Pardon me for not following HBASE-6894 closely.
I agree with the proposal.
> alter table with multiple actions should do just one schema update (shell)
> --------------------------------------------------------------------------
>
> Key: HBASE-7065
> URL: https://issues.apache.org/jira/browse/HBASE-7065
> Project: HBase
> Issue Type: Improvement
> Components: shell
> Affects Versions: 0.96.0
> Reporter: Sergey Shelukhin
> Priority: Minor
>
> In the shell, when one runs alter command with multiple things to do (e.g. "alter 't1', 'f1', { NAME => 'f2', VERSIONS => 5 }, { 'delete' => 'f3' }, MAX_FILESIZE => 1232353") the shell does the schema update after each action.
> I'd assume it takes a long time on large clusters, and can also be unexpected from the logical perspective, especially if it fails in the middle for example.
> Should it do one schema update instead?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira