Creating MapR-DB Binary Tables for Full Bulkload

To perform a full bulkload on a MapR-DB binary table, the full bulkload parameter must be specified when creating the table.

To create a MapR-DB binary table for bulkloading, use one for the following commands:

  • MapR maprcli table create command with tthe -bulkload parameter set to true.

  • Apache HBase shell create command with the BULKLOAD parameter set to true. For example:
    hbase> create '/a0','f1', BULKLOAD => 'true'
    If you want to pre-split a table, separate the BULKLOAD parameter from the SPLITS parameter. For example:
    hbase> create '/t1', 'f1', {SPLITS => ['10', '20', '30']}, {BULKLOAD => 'true'} 
  • MapR Control System (MCS) by selecting the Bulkload check box under Table Properties.

Note: Attempting a full bulkload on a table that does not have the bulkload attribute set to true results in an incremental bulkload being performed instead.
Important: If you performed a full bulkload using the Apache HBase CopyTable utility, the bulkload setting on the table must be manually changed back to false. If this manual operation is not performed, the table will not be available to client applications. You do not have to use either of these commands if you used the MapR-DB CopyTable utility which makes tables available to client applications automatically after a bulkload is completed.
Commands for change a table's bulkload status from TRUE to FALSE:
# maprcli table edit -path /user/juser/mytable -bulkload false (command
               line)
 hbase shell> alter '/user/juser/mytable', 'f2', BULKLOAD => 'false' (hbase
               shell)
After you perform a full bulkload on a table, you cannot perform a full bulkload on it again. For example:
  • You cannot use the MapR maprcli table edit command to set the bulkload parameter to TRUE again.
  • You cannot use the Apache HBase shell alter command to set the BULKLOAD parameter to TRUE again.
  • In MCS, although the Bulkload check box is enabled after a table is created, selecting that check box and clicking OK in the Table Properties dialog generates an error message.