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:
| Service | Default system user | Default system group |
|---|---|---|
livedata-migrator | hdfs | hdfs |
hivemigrator | hive | hadoop |
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
Adjust the system user or group in the service configuration. Choose one of options below depending on your operating system.
Linux distributions with systemd
Create an override service file for thelivedata-migratorservice:livedata-migratorsystemctl edit livedata-migratorIn the text editor that opens automatically, override the
UserandGroupvariables with your preferred user and group:Example[Service]
User=<user>
Group=<group>Linux distributions without systemd
Update the values forUSERNAMEandGROUPNAMEin the configuration file for thelivedata-migratorservice:livedata-migrator/etc/wandisco/livedata-migrator/ldm.env
Change ownership of the related directories to the new system user/group:
livedata-migratorchown -R <user>:<group> /opt/wandisco/livedata-migrator /etc/wandisco/livedata-migrator /var/log/wandisco/livedata-migrator /var/run/livedata-migratorOnce you've finished making changes, restart the
livedata-migratorservice:Linux distributions with systemd
livedata-migratorsystemctl restart livedata-migratorLinux distributions without systemd
livedata-migratorservice livedata-migrator restart
Hive Migrator
Adjust the system user or group in the service configuration. Choose one of options below depending on your operating system.
Linux distributions with systemd
Create an override service file:
hivemigratorsystemctl edit hivemigratorIn the text editor that opens automatically, override the
UserandGroupvariables with your preferred user and group:Example[Service]
User=<user>
Group=<group>Linux distributions without systemd
Update the values for
HIVE_MIGRATOR_SERVER_USERandHIVE_MIGRATOR_SERVER_GROUPin the configuration file for thehivemigratorservice:hivemigrator/etc/wandisco/hivemigrator/vars.sh
Change ownership of the related directories to the new system user/group:
hivemigratorchown -R <user>:<group> /opt/wandisco/hivemigrator /etc/wandisco/hivemigrator /var/log/wandisco/hivemigrator /var/run/hivemigratorOnce you've finished making changes, restart the
hivemigratorservice:Linux distributions with systemd
hivemigratorsystemctl restart hivemigratorLinux distributions without systemd
hivemigratorservice hivemigrator restart