Configure system users

Adjust the system user or group for each LiveData Migrator for Azure service to suit your environment.

Default users and groups#

The default system users and groups for each service on your Hadoop filesystem are as follows:

ServiceDefault system userDefault system group
livedata-migratorhdfshdfs
hivemigratorhivehadoop

Run a service as a different user or group#

Follow the steps depending on which service or services you want to change the user/group for.

LiveData Migrator#

  1. Adjust the system user or group in the service configuration. Choose one of options below depending on your operating system.

    1. Linux distributions with systemd
      Create an override service file for the livedata-migrator service:

      livedata-migrator
      systemctl edit livedata-migrator

      In the text editor that opens automatically, override the User and Group variables with your preferred user and group:

      Example
      [Service]
      User=<user>
      Group=<group>
    2. Linux distributions without systemd
      Update the values for USERNAME and GROUPNAME in the configuration file for the livedata-migrator service:

      livedata-migrator
      /etc/wandisco/livedata-migrator/ldm.env
  2. Change ownership of the related directories to the new system user/group:

    livedata-migrator
    chown -R <user>:<group> /opt/wandisco/livedata-migrator /etc/wandisco/livedata-migrator /var/log/wandisco/livedata-migrator /var/run/livedata-migrator
  3. Once you've finished making changes, restart the livedata-migrator service:

    • Linux distributions with systemd

      livedata-migrator
      systemctl restart livedata-migrator
    • Linux distributions without systemd

      livedata-migrator
      service livedata-migrator restart

Hive Migrator#

  1. Adjust the system user or group in the service configuration. Choose one of options below depending on your operating system.

    1. Linux distributions with systemd

      Create an override service file:

      hivemigrator
      systemctl edit hivemigrator

      In the text editor that opens automatically, override the User and Group variables with your preferred user and group:

      Example
      [Service]
      User=<user>
      Group=<group>
    2. Linux distributions without systemd

      Update the values for HIVE_MIGRATOR_SERVER_USER and HIVE_MIGRATOR_SERVER_GROUP in the configuration file for the hivemigrator service:

      hivemigrator
      /etc/wandisco/hivemigrator/vars.sh
  1. Change ownership of the related directories to the new system user/group:

    hivemigrator
    chown -R <user>:<group> /opt/wandisco/hivemigrator /etc/wandisco/hivemigrator /var/log/wandisco/hivemigrator /var/run/hivemigrator
  2. Once you've finished making changes, restart the hivemigrator service:

    1. Linux distributions with systemd

      hivemigrator
      systemctl restart hivemigrator
    2. Linux distributions without systemd

      hivemigrator
      service hivemigrator restart