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-migrator
service:livedata-migratorsystemctl edit livedata-migrator
In the text editor that opens automatically, override the
User
andGroup
variables with your preferred user and group:Example[Service]
User=<user>
Group=<group>Linux distributions without systemd
Update the values forUSERNAME
andGROUPNAME
in the configuration file for thelivedata-migrator
service: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-migrator
Once you've finished making changes, restart the
livedata-migrator
service:Linux distributions with systemd
livedata-migratorsystemctl restart livedata-migrator
Linux 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 hivemigrator
In the text editor that opens automatically, override the
User
andGroup
variables with your preferred user and group:Example[Service]
User=<user>
Group=<group>Linux distributions without systemd
Update the values for
HIVE_MIGRATOR_SERVER_USER
andHIVE_MIGRATOR_SERVER_GROUP
in the configuration file for thehivemigrator
service: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/hivemigrator
Once you've finished making changes, restart the
hivemigrator
service:Linux distributions with systemd
hivemigratorsystemctl restart hivemigrator
Linux distributions without systemd
hivemigratorservice hivemigrator restart