Changing the User for Data Fabric Services from the Command-Line
Explains how use the CLI to change the user that data-fabric services run as.
About this task
All services should run with the same uid/gid on all nodes in the cluster.
Running Data Fabric Services as the Root User
Procedure
-
Stop Warden.
service mapr-warden stop
-
If ZooKeeper is installed on the node, stop it.
service mapr-zookeeper stop
-
Run the script
$INSTALL_DIR/server/config-mapr-user.sh -u root
-
If Zookeeper is installed, start it.
service mapr-zookeeper start
-
Start Warden.
service mapr-warden start
Running Data Fabric Services as a Non-Root User
Procedure
-
Stop Warden.
service mapr-warden stop
-
If ZooKeeper is installed on the node, stop it.
service mapr-zookeeper stop
- If the MAPR_USER does not exist, create the user/group with the same UID and GID.
- If the MAPR_USER exists, verify that the uid of MAPR_USER is the same as the value on the CLDB node.
-
Run
$INSTALL_DIR/server/config-mapr-user.sh -u MAPR_USER
. -
If Zookeeper is installed, start it.
service mapr-zookeeper start
-
Start Warden.
service mapr-warden start
-
After clearing NODE_ALARM_MAPRUSER_MISMATCH alarms on all
nodes, run
$INSTALL_DIR/server/upgrade2mapruser.sh
on all nodes wherever the alarm is raised.