AnsweredAssumed Answered

Question on Migration or Backup from HDFS

Question asked by evan on Apr 7, 2016
Latest reply on Apr 7, 2016 by mufeed

I just wonder whether MapR has the equivalent command line operations for migration purpose in CDH environment.


In CDH I usually migrate stuffs from one HDFS system to another one. The steps of the backup action are as follows:

1) Suppose the HDFS folder /data need to be migrated

2) Make /data snapshottable: hdfs dfsadmin -allowSnapshot /data

3) Create a snapshot: hdfs dfs -createSnapshot /data snapshot

4) Copy the snapshot folder from HDFS to local drive: hdfs dfs -copyToLocal /data/.snapshot/snapshot /tmp/backup


Could someone give me an example on MapR to implement this?