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

  1. Stop the service (if it is currently running).
  2. Make a copy of the /opt/mapr/filemigrate/filemigrate-1.0.0/conf/FileMigrate.properties.default file and rename it to FileMigrate.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.

  3. 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.
  4. 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 the hadoop fs -mkdir command. The FileMigrate.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.
  5. Restart the service using the maprcli command, as in the following example.
    maprcli node services -name filemigrate -nodes <node to restart> -action restart