AnsweredAssumed Answered

How to move files between volumes with C API

Question asked by awcoleman on Jul 6, 2018

I am trying to move files from one volume to another using the C API (really through the C library for Python: /opt/mapr/support/python/MapRPythonClient.a), but am having issues.

 

Both hdfsCopy and hdfsMove state 'This API is not supported.' in the docs.

And hdfsRename can not rename between volumes.


Some Java code describing the message 'MapRFileSystem: Cannot rename across volumes, falling back
on copy/delete semantics' shows this is done with a copy+delete but hdfsCopy isn't supported in the C API.

 

What is the best way to move files from one volume to another using the C API? Do I have to read then write each file?

 

Thanks,
Andrew

Outcomes