You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Billy Pearson (JIRA)" <ji...@apache.org> on 2007/11/21 01:49:43 UTC

[jira] Created: (HADOOP-2240) Truncate for hbase

Truncate for hbase
------------------

                 Key: HADOOP-2240
                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
             Project: Hadoop
          Issue Type: New Feature
          Components: contrib/hbase
            Reporter: Billy Pearson
            Priority: Minor


Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Updated: (HADOOP-2240) Truncate for hbase

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack updated HADOOP-2240:
--------------------------

    Status: In Progress  (was: Patch Available)

Try hudson.

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.15.0
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Commented: (HADOOP-2240) Truncate for hbase

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556372#action_12556372 ] 

Hudson commented on HADOOP-2240:
--------------------------------

Integrated in Hadoop-Nightly #358 (See [http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Nightly/358/])

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.16.0
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240-v4.patch, 2240-v5.patch, 2240-v6.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Updated: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Yoon updated HADOOP-2240:
--------------------------------

    Status: Patch Available  (was: Open)

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.16.0
>            Reporter: Billy Pearson
>            Assignee: stack
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240-v4.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Assigned: (HADOOP-2240) Truncate for hbase

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack reassigned HADOOP-2240:
-----------------------------

    Assignee: stack  (was: Edward Yoon)

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.15.0
>            Reporter: Billy Pearson
>            Assignee: stack
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Updated: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Yoon updated HADOOP-2240:
--------------------------------

    Status: Open  (was: Patch Available)

Oh, sorry. I missed it.

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.16.0
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240-v4.patch, 2240-v5.patch, 2240-v6.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Assigned: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Yoon reassigned HADOOP-2240:
-----------------------------------

    Assignee: Edward Yoon

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Updated: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Yoon updated HADOOP-2240:
--------------------------------

    Status: Patch Available  (was: Open)

submitting

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.15.0
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240.2, 2240.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Updated: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Yoon updated HADOOP-2240:
--------------------------------

    Attachment: 2240-v6.patch

Added help-output.

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.16.0
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240-v4.patch, 2240-v5.patch, 2240-v6.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Commented: (HADOOP-2240) Truncate for hbase

Posted by "stack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554889 ] 

stack commented on HADOOP-2240:
-------------------------------

Edward:  There is no point rescheduling same patch.  Hudsons complaint is that the patch just doesn't apply (I just tried it and indeed it doesn't).

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.16.0
>            Reporter: Billy Pearson
>            Assignee: stack
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Updated: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Yoon updated HADOOP-2240:
--------------------------------

    Attachment: 2240.patch

- Truncate table is used to clean all data from a table.

SYNTAX: TRUNCATE TABLE table_name;

{code}
hql > insert into test (a,b) values ('aa','bb') where row='row1';
1 row inserted successfully. (0.41 sec)
hql > truncate table test;
'test' is successfully truncated.
hql > select * from test;
0 row(s) in set. (1.16 sec)
hql > exit;
{code}

- We need to get away from functionalities and focus on the internal algorithm issues. I'll make these issues.
- i didn't make the test case becuase it already exists. (It just steps of creating drop repeats.)


> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>         Attachments: 2240.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Updated: (HADOOP-2240) Truncate for hbase

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack updated HADOOP-2240:
--------------------------

    Attachment: 2240-v3.patch

Patch that puts together help-string.patch and 2240.2 (I also tried it locally and it works +1).

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.15.0
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Commented: (HADOOP-2240) Truncate for hbase

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556316#action_12556316 ] 

Hadoop QA commented on HADOOP-2240:
-----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
http://issues.apache.org/jira/secure/attachment/12372485/2240-v6.patch
against trunk revision .

    @author +1.  The patch does not contain any @author tags.

    javadoc +1.  The javadoc tool did not generate any warning messages.

    javac +1.  The applied patch does not generate any new compiler warnings.

    findbugs +1.  The patch does not introduce any new Findbugs warnings.

    core tests +1.  The patch passed core unit tests.

    contrib tests -1.  The patch failed contrib unit tests.

Test results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1480/testReport/
Findbugs warnings: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1480/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1480/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1480/console

This message is automatically generated.

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.16.0
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240-v4.patch, 2240-v5.patch, 2240-v6.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Updated: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Yoon updated HADOOP-2240:
--------------------------------

    Status: Open  (was: Patch Available)

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.16.0
>            Reporter: Billy Pearson
>            Assignee: stack
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Updated: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Yoon updated HADOOP-2240:
--------------------------------

    Status: Patch Available  (was: Open)

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.16.0
>            Reporter: Billy Pearson
>            Assignee: stack
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Updated: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Yoon updated HADOOP-2240:
--------------------------------

    Status: Open  (was: Patch Available)

not fit.
canceling.

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.16.0
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240-v4.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Updated: (HADOOP-2240) Truncate for hbase

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack updated HADOOP-2240:
--------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

Committed after confirming it works by trying it locally  (Test failures are erratics unrelated to shell failures).  Resolving.  Thanks for the patch Edward.

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.16.0
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240-v4.patch, 2240-v5.patch, 2240-v6.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Updated: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Yoon updated HADOOP-2240:
--------------------------------

    Status: Patch Available  (was: Open)

It's not running.

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.16.0
>            Reporter: Billy Pearson
>            Assignee: stack
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Commented: (HADOOP-2240) Truncate for hbase

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12555681#action_12555681 ] 

Hadoop QA commented on HADOOP-2240:
-----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
http://issues.apache.org/jira/secure/attachment/12372440/2240-v5.patch
against trunk revision .

    @author +1.  The patch does not contain any @author tags.

    javadoc +1.  The javadoc tool did not generate any warning messages.

    javac +1.  The applied patch does not generate any new compiler warnings.

    findbugs +1.  The patch does not introduce any new Findbugs warnings.

    core tests -1.  The patch failed core unit tests.

    contrib tests -1.  The patch failed contrib unit tests.

Test results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1456/testReport/
Findbugs warnings: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1456/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1456/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1456/console

This message is automatically generated.

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.16.0
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240-v4.patch, 2240-v5.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Assigned: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Yoon reassigned HADOOP-2240:
-----------------------------------

    Assignee: Edward Yoon  (was: stack)

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.16.0
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240-v4.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Commented: (HADOOP-2240) Truncate for hbase

Posted by "Billy Pearson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12544141 ] 

Billy Pearson commented on HADOOP-2240:
---------------------------------------

I am not sure how its coded right now for drop and create commands from the shell but I figured we could borrow from that

Steps I was suggestion:

1. Get col data for table with - > show tables;
2. Drop table
3. Create table from the show table data

All the code should be in the drop and create commands code to take care of the meta table.
Just need to come up with a way to parse the show table data for the table we need.
I have never coded in Java so this might be harder then I thank.

from dropping tables and creating them in the past on my setup dropping takes about 10sec but create right after is done in < 1s

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>            Reporter: Billy Pearson
>            Priority: Minor
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Updated: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Yoon updated HADOOP-2240:
--------------------------------

    Status: Patch Available  (was: Open)

submitting.

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.16.0
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240-v4.patch, 2240-v5.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Updated: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Yoon updated HADOOP-2240:
--------------------------------

        Fix Version/s: 0.16.0
    Affects Version/s: 0.15.0
               Status: Patch Available  (was: In Progress)

submitting.

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.15.0
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Commented: (HADOOP-2240) Truncate for hbase

Posted by "stack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12553727 ] 

stack commented on HADOOP-2240:
-------------------------------

Edward: This patch won't apply for me.  Could you please regenerate?  I'm at r605980 12/20/2007.  FYI, this kinda thing does not belong as a class comment: "But, We need to get  away from functionalities and focus on the internal algorithm issues. - Edward."  

Thanks

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.15.0
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Updated: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Yoon updated HADOOP-2240:
--------------------------------

    Status: Patch Available  (was: Open)

submitting.

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.16.0
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240-v4.patch, 2240-v5.patch, 2240-v6.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Work started: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on HADOOP-2240 started by Edward Yoon.

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Commented: (HADOOP-2240) Truncate for hbase

Posted by "stack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12555786#action_12555786 ] 

stack commented on HADOOP-2240:
-------------------------------

Edward: Your new truncate command doesn't have an entry in the 'help' output.  Without one, I don't think folks will realize the functionality exists.

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.16.0
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240-v4.patch, 2240-v5.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Updated: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Yoon updated HADOOP-2240:
--------------------------------

    Status: Open  (was: Patch Available)

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.16.0
>            Reporter: Billy Pearson
>            Assignee: stack
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240-v4.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Updated: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Yoon updated HADOOP-2240:
--------------------------------

    Attachment: 2240.2

regenerated patch

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.15.0
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240.2, 2240.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Commented: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12544138 ] 

Edward Yoon commented on HADOOP-2240:
-------------------------------------

Do you have an idea of how to update a metadata for table initializing?

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>            Reporter: Billy Pearson
>            Priority: Minor
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Commented: (HADOOP-2240) Truncate for hbase

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554829 ] 

Hadoop QA commented on HADOOP-2240:
-----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
http://issues.apache.org/jira/secure/attachment/12372168/2240-v3.patch
against trunk revision r607131.

    @author +1.  The patch does not contain any @author tags.

    patch -1.  The patch command could not apply the patch.

Console output: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1425/console

This message is automatically generated.

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.16.0
>            Reporter: Billy Pearson
>            Assignee: stack
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Updated: (HADOOP-2240) Truncate for hbase

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack updated HADOOP-2240:
--------------------------

    Status: Patch Available  (was: In Progress)

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.15.0
>            Reporter: Billy Pearson
>            Assignee: stack
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Updated: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Yoon updated HADOOP-2240:
--------------------------------

    Attachment: 2240-v5.patch

Here's a clean-up patch.

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.16.0
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240-v4.patch, 2240-v5.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Updated: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Yoon updated HADOOP-2240:
--------------------------------

    Status: Open  (was: Patch Available)

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.15.0
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240.2, 2240.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Commented: (HADOOP-2240) Truncate for hbase

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547391 ] 

Hadoop QA commented on HADOOP-2240:
-----------------------------------

+1 overall.  Here are the results of testing the latest attachment 
http://issues.apache.org/jira/secure/attachment/12370730/2240.patch
against trunk revision r600019.

    @author +1.  The patch does not contain any @author tags.

    javadoc +1.  The javadoc tool did not generate any warning messages.

    javac +1.  The applied patch does not generate any new compiler warnings.

    findbugs +1.  The patch does not introduce any new Findbugs warnings.

    core tests +1.  The patch passed core unit tests.

    contrib tests +1.  The patch passed contrib unit tests.

Test results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1227/testReport/
Findbugs warnings: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1227/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1227/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1227/console

This message is automatically generated.

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.15.0
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Commented: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556336#action_12556336 ] 

Edward Yoon commented on HADOOP-2240:
-------------------------------------

I can't find a 'TruncateCommand.java'
Please check this problem!!

src/contrib/hbase/src/java/org/apache/hadoop/hbase/shell/TruncateCommand.java


> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.16.0
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240-v4.patch, 2240-v5.patch, 2240-v6.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Commented: (HADOOP-2240) Truncate for hbase

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12555486#action_12555486 ] 

Hadoop QA commented on HADOOP-2240:
-----------------------------------

-1 overall.  Here are the results of testing the latest attachment 
http://issues.apache.org/jira/secure/attachment/12372318/2240-v4.patch
against trunk revision .

    @author +1.  The patch does not contain any @author tags.

    patch -1.  The patch command could not apply the patch.

Console output: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1450/console

This message is automatically generated.

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.16.0
>            Reporter: Billy Pearson
>            Assignee: stack
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240-v4.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Commented: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12544675 ] 

Edward Yoon commented on HADOOP-2240:
-------------------------------------

That would be fine, Billy. 

In addition, We should think about delete statement with no WHERE clause.
And, I'd like to discuss about performance advantages of these functions except functional advantages.

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>            Reporter: Billy Pearson
>            Priority: Minor
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Updated: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Yoon updated HADOOP-2240:
--------------------------------

    Attachment: help-string.patch

help output patch

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.15.0
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Commented: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12553685 ] 

Edward Yoon commented on HADOOP-2240:
-------------------------------------

Should it be closed?

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.15.0
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Commented: (HADOOP-2240) Truncate for hbase

Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12553843 ] 

Hadoop QA commented on HADOOP-2240:
-----------------------------------

+1 overall.  Here are the results of testing the latest attachment 
http://issues.apache.org/jira/secure/attachment/12372051/2240.2
against trunk revision r606058.

    @author +1.  The patch does not contain any @author tags.

    javadoc +1.  The javadoc tool did not generate any warning messages.

    javac +1.  The applied patch does not generate any new compiler warnings.

    findbugs +1.  The patch does not introduce any new Findbugs warnings.

    core tests +1.  The patch passed core unit tests.

    contrib tests +1.  The patch passed contrib unit tests.

Test results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1413/testReport/
Findbugs warnings: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1413/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1413/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://lucene.zones.apache.org:8080/hudson/job/Hadoop-Patch/1413/console

This message is automatically generated.

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.15.0
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240.2, 2240.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Updated: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Yoon updated HADOOP-2240:
--------------------------------

    Attachment: 2240-v4.patch

Oh. I see.

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.16.0
>            Reporter: Billy Pearson
>            Assignee: stack
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240-v4.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Updated: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Yoon updated HADOOP-2240:
--------------------------------

    Affects Version/s:     (was: 0.15.0)
                       0.16.0
               Status: Open  (was: Patch Available)

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.16.0
>            Reporter: Billy Pearson
>            Assignee: stack
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Updated: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Yoon updated HADOOP-2240:
--------------------------------

    Status: Patch Available  (was: Open)

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.16.0
>            Reporter: Billy Pearson
>            Assignee: stack
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Updated: (HADOOP-2240) Truncate for hbase

Posted by "Edward Yoon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edward Yoon updated HADOOP-2240:
--------------------------------

    Status: Open  (was: Patch Available)

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.16.0
>            Reporter: Billy Pearson
>            Assignee: stack
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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


[jira] Commented: (HADOOP-2240) Truncate for hbase

Posted by "stack (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HADOOP-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556337#action_12556337 ] 

stack commented on HADOOP-2240:
-------------------------------

Thanks Edward.  I forgot to add it.  I just committed it.

> Truncate for hbase
> ------------------
>
>                 Key: HADOOP-2240
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2240
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: contrib/hbase
>    Affects Versions: 0.16.0
>            Reporter: Billy Pearson
>            Assignee: Edward Yoon
>            Priority: Minor
>             Fix For: 0.16.0
>
>         Attachments: 2240-v3.patch, 2240-v4.patch, 2240-v5.patch, 2240-v6.patch, 2240.2, 2240.patch, help-string.patch
>
>
> Would be nice to have a way to truncate the tables from the shell. With out doing a drop and create your self. Maybe the truncate could issue the drop and create command for you based off the layout in the the table before the truncate.

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