Configuring the File Migration Service Using the Properties File
Lists the procedure to configure the File Migration Serivce using a properties file.
About this task
To configure the File Migration Service:
Procedure
-
Stop the service (if it is currently running).
See Starting, Stopping, and Restarting the Service Using the CLI for more information.
-
Make a copy of the
/opt/mapr/filemigrate/filemigrate-1.0.0/conf/FileMigrate.properties.default
file and rename it toFileMigrate.properties
if you have not yet set any properties and wish to start from the defaults, as in the following example.cp /opt/mapr/filemigrate/filemigrate-1.0.0/conf/FileMigrate.properties.default FileMigrate.properties
Alternatively, you can use the
maprfs:///var/mapr/filemigrate/FileMigrate.properties
file if you have already used the interface to set some properties and want to perform further edits manually. See Managing Policies for more information. -
Edit the
FileMigrate.properties
file to change the settings for the service, if/where necessary, and save the file.For more information, see FileMigrate.properties. -
Copy the
FileMigrate.properties
file to the/var/mapr/filemigrate/
directory, as in the following example.hadoop fs -copyFromLocal /tmp/FileMigrate.properties /var/mapr/filemigrate
NOTE If the directory does not already exist, create it by running thehadoop fs -mkdir
command. TheFileMigrate.properties
file contains sensitive information and the recommendation is to limit read access to the directory. If the service creates the directory, by default, only the MAPR_USER and MAPR_GROUP have read access to the directory. -
Restart the service using the
maprcli
command, as in the following example.maprcli node services -name filemigrate -nodes <node to restart> -action restart