You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Lars George (JIRA)" <ji...@apache.org> on 2009/02/23 02:41:01 UTC
[jira] Created: (HBASE-1210) Allow truncation of output for scan
and get commands in shell
Allow truncation of output for scan and get commands in shell
-------------------------------------------------------------
Key: HBASE-1210
URL: https://issues.apache.org/jira/browse/HBASE-1210
Project: Hadoop HBase
Issue Type: Improvement
Reporter: Lars George
Assignee: Lars George
Priority: Trivial
Allow to chop the output of the values to be able to scan a table for specific rows and columns but without having the shell dump all the content of the cell value as it can potentially be very large. I suggest a hash called MAXLENGTH that can be added to the commands. For example:
get 'docs', 'ABCDE', { COLUMNS => 'contents:', MAXLENGTH => 150 }
and
scan 'docs', { COLUMNS => 'contents:', MAXLENGTH => 150 }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (HBASE-1210) Allow truncation of output for scan
and get commands in shell
Posted by "stack (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stack resolved HBASE-1210.
--------------------------
Resolution: Fixed
Fix Version/s: 0.20.0
Applied. Thanks for the patch Lars.
> Allow truncation of output for scan and get commands in shell
> -------------------------------------------------------------
>
> Key: HBASE-1210
> URL: https://issues.apache.org/jira/browse/HBASE-1210
> Project: Hadoop HBase
> Issue Type: Improvement
> Reporter: Lars George
> Assignee: Lars George
> Priority: Trivial
> Fix For: 0.20.0
>
> Attachments: 1210.patch
>
>
> Allow to chop the output of the values to be able to scan a table for specific rows and columns but without having the shell dump all the content of the cell value as it can potentially be very large. I suggest a hash called MAXLENGTH that can be added to the commands. For example:
> get 'docs', 'ABCDE', { COLUMNS => 'contents:', MAXLENGTH => 150 }
> and
> scan 'docs', { COLUMNS => 'contents:', MAXLENGTH => 150 }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HBASE-1210) Allow truncation of output for scan
and get commands in shell
Posted by "Lars George (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-1210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lars George updated HBASE-1210:
-------------------------------
Attachment: 1210.patch
Patch to add MAXLENGTH hash to scan and get calls.
> Allow truncation of output for scan and get commands in shell
> -------------------------------------------------------------
>
> Key: HBASE-1210
> URL: https://issues.apache.org/jira/browse/HBASE-1210
> Project: Hadoop HBase
> Issue Type: Improvement
> Reporter: Lars George
> Assignee: Lars George
> Priority: Trivial
> Attachments: 1210.patch
>
>
> Allow to chop the output of the values to be able to scan a table for specific rows and columns but without having the shell dump all the content of the cell value as it can potentially be very large. I suggest a hash called MAXLENGTH that can be added to the commands. For example:
> get 'docs', 'ABCDE', { COLUMNS => 'contents:', MAXLENGTH => 150 }
> and
> scan 'docs', { COLUMNS => 'contents:', MAXLENGTH => 150 }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.