Use the procedure to do the following on all Presto nodes (prestoadmin node,
coordinator node, and worker nodes):
- Create a prestoadmin group and user
- Grant sudo privileges to the prestoadmin group. Granting sudo privileges allows the prestoadmin group to perform administrative tasks for Teradata Presto.
In Teradata Hadoop clusters, the prestoadmin node is co-located with the
coordinator node. The procedures for the prestoadmin node and the coordinator node
are performed on the prestoadmin node.
- On each Presto node (prestoadmin node/coordinator node, worker nodes), log in as root.
-
Create a prestoadmin group, a
prestoadmin user, and set a password for the
prestoadmin user.
- groupadd prestoadmin
- useradd -d /home/prestoadmin -m -c "presto admin user to administer the Teradata Presto SQL Engine" -G prestoadmin prestoadmin
- passwd prestoadmin
-
Grant the prestoadmin group on each Presto node (prestoadmin node/coordinator node, worker nodes) sudo privileges by doing the following.
- Enter visudo.
-
Add the following entry:
%prestoadmin ALL=(ALL) NOPASSWD: ALL
- Save and exit visudo. ESC:wq