Configuring System Users
Adjust the system user or group for each LiveData Migrator service to suit your environment.
#
DefaultsThe default system users and groups for each service are as follows:
Service | Default system user | Default system group |
---|---|---|
livedata-migrator | hdfs | hdfs |
livedata-ui | hdfs | hdfs |
hivemigrator | hive | hadoop |
hivemigrator-remote-server | hive | hadoop |
#
Running a service as a different user or groupFollow the steps depending on which service or services you want to change the user/group for.
#
LiveData Migrator and LiveData UIAdjust 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 the intended service:livedata-migratorsystemctl edit livedata-migrator
livedata-uisystemctl edit livedata-ui
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 the intended service:livedata-migrator/etc/wandisco/livedata-migrator/vars.env
livedata-ui/etc/wandisco/ui/vars.env
Change ownership of the related directories to the new system user/group:
livedata-migratorchown -R <user>:<group> /opt/wandisco/livedata-migrator \chown -R <user>:<group> /etc/wandisco/livedata-migrator \chown -R <user>:<group> /var/log/wandisco/livedata-migrator \chown -R <user>:<group> /var/run/livedata-migrator
livedata-uichown -R <user>:<group> /opt/wandisco/ui \chown -R <user>:<group> /etc/wandisco/ui \chown -R <user>:<group> /var/log/wandisco/ui \chown -R <user>:<group> /var/run/livedata-ui
Once you've finished making changes, restart the corresponding service:
Linux distributions with systemd
livedata-migratorsystemctl restart livedata-migrator
livedata-uisystemctl restart livedata-ui
Linux distributions without systemd
livedata-migratorservice livedata-migrator restart
livedata-uiservice livedata-ui restart
#
HiveMigrator and HiveMigrator remote serverUpdate the values for
HIVE_MIGRATOR_SERVER_USER
andHIVE_MIGRATOR_SERVER_GROUP
in the configuration file for the intended service:hivemigrator/etc/wandisco/hivemigrator/vars.sh
hivemigrator-remote-server/etc/wandisco/hivemigrator-remote-server/vars.sh
Change ownership of the related directories to the new system user/group:
hivemigratorchown -R <user>:<group> /opt/wandisco/hivemigrator \chown -R <user>:<group> /etc/wandisco/hivemigrator \chown -R <user>:<group> /var/log/wandisco/hivemigrator \chown -R <user>:<group> /var/run/hivemigrator
hivemigrator-remote-serverchown -R <user>:<group> /opt/wandisco/hivemigrator-remote-server \chown -R <user>:<group> /etc/wandisco/hivemigrator-remote-server \chown -R <user>:<group> /var/log/wandisco/hivemigrator-remote-server \chown -R <user>:<group> /var/run/livedata-hivemigrator-remote-server
Once you've finished making changes, restart the corresponding service:
hivemigratorservice hivemigrator restart
hivemigrator-remote-serverservice hivemigrator-remote-server restart