Configuring User Permissions
If the Hadoop installation user is a common user, it is recommended that the HAF and OmniData installation user be the same as the Hadoop installation user, and that HAF and OmniOffload be installed in the common user directory. Before installing Hadoop as a common user, log in as the root user and assign the required permission to the common user.
All commands in this section are for reference in the following scenarios. Change the values based on your requirements.
- The installation user is omm.
- The cgroup subdirectory is omm. For details, see Prerequisites for Installing OmniData.
Prerequisites for Installing OmniData
Before installing OmniData on the offload node as a common user, perform the following operations as the root user first:
- Grant the permission for creating scheduled tasks to the current user. If the current user is omm. Run the following command:
1echo "omm" >> /etc/cron.allow
- To control the CPU used by applications running in OmniData, create a cgroup subdirectory for the current user. Assume that the current user is omm and the subdirectory is omm. Run the following commands:
1 2 3
cd /sys/fs/cgroup/cpu mkdir omm chown -R omm:omm omm
- To ensure system security, disable remote login for user omm who installs and runs OmniData. That is, set the permission of user omm to nologin.
- You do not need to perform the preceding operations on compute nodes.
- When using the root user for installation, you do not need to configure a scheduled task, but you need to create a subdirectory in /sys/fs/cgroup/cpu.
- The cgroup subdirectory name must be the same as the current user name.
Parent topic: Preparations