You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2009/02/07 21:51:02 UTC

[jira] Commented: (HBASE-974) New Backup Export/Import MR for 0.18/0.19

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

stack commented on HBASE-974:
-----------------------------

Erik:

Would suggest that when you are successful with Yair, that you get him to +1 one this issue.  On the ExportMR job, I wonder if its possible to set maps == 0 so you don't have to supply a map task?  Should we commit these classes to hbase?  Into a contrib or under examples?  I like the way they serialize RR.  Good idea.  If we're going to commit, they need apache licenses and the style fixed up (don't ask jgray -- he'll only tell you wrong thing.... smile).  For the below, check Writables in hbase util.  I think there are methods there to help you do the below:
{code}
		ByteArrayInputStream bis = new ByteArrayInputStream( ((BytesWritable)val).get() );// baos.toByteArray());
		DataInputStream dis = new DataInputStream(bis);
		RowResult rowRes = new RowResult();
		rowRes.readFields(dis);
{code}
If you use HbaseMapWritable instead of MW, you could do without Text and toString'ing table name (I think).  In 880, I believe RowResult and BatchUpdate have same ancestor.  Would be sweet if they could be used interchangeably so you wouldn't need to do the conversion in rowResultToBatchUpdate.  You think it makes sense creating the new HTable in the reduce each time its invoked and not in its configure step?



> New Backup Export/Import MR for 0.18/0.19
> -----------------------------------------
>
>                 Key: HBASE-974
>                 URL: https://issues.apache.org/jira/browse/HBASE-974
>             Project: Hadoop HBase
>          Issue Type: New Feature
>    Affects Versions: 0.18.0, 0.18.1, 0.19.0
>            Reporter: Jonathan Gray
>            Assignee: Erik Holstad
>            Priority: Minor
>         Attachments: ExportMR.java, ExportMR.sh, ImportMR.java, ImportMR.sh, makeExportJar.sh, makeImportJar.sh
>
>
> Erik has built a new backup tool that's compatible with newer versions of HBase.

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