Tuesday, July 14, 2020

MapRDB HBase notes (copyTable etc)


copyTableMapR-DB table
https://mapr.com/docs/52/ReferenceGuide/CopyTable.html
hbase com.mapr.fs.hbase.tools.mapreduce.CopyTable
    -src <source table path> -dst <destination table path>
    [-columns cf1[:col1],...] [-maxversions <max number of versions to copy>]
    [-starttime <time>]
    [-endtime <time>]
    [-mapreduce <true|false> (default: true)]
    [-bulkload <true|false> (default: true)]
    [-numthreads <numThreads> (default:16, valid only when -mapreduce is false)]

copyTableMapR-DB Json table
https://mapr.com/docs/60/ReferenceGuide/mapr_copytable.html
Copies data from one MapR-DB JSON table to another MapR-DB JSON table.
mapr copytable 
-src <source table path>
-dst <destination table path>
[-fromID <start key>]
[-toID <end key>]
[-bulkload <true|false> (default: true)]
[-mapreduce <true|false> (default: true)]
[-cmpmeta <true|false> (default: true)]
[-numthreads <number of threads> (default: 16)

truncate : MapR-DB table
truncate command does the 'disable, drop and create' for you

No comments:

Post a Comment