TOSIT-IO / tdp-collection

Ansible collection to deploy the components of TDP
Apache License 2.0
21 stars 19 forks source link

knox installation does not have the same rights / owner as the others #262

Open gboutry opened 2 years ago

gboutry commented 2 years ago

Knox installation has knox:hadoop as owner and 744 as rights while it should be root:root and 755

lrwxrwxrwx.  1 root root     38 May 11 22:40 knox -> /opt/tdp/knox-1.6.1-TDP-0.1.0-SNAPSHOT
drwxr--r--. 12 knox hadoop  217 May 11 22:41 knox-1.6.1-TDP-0.1.0-SNAPSHOT
lrwxrwxrwx.  1 root root     43 May 11 22:40 knoxshell -> /opt/tdp/knoxshell-1.6.1-TDP-0.1.0-SNAPSHOT
drwxr--r--.  6 knox hadoop   98 Jan 22  2020 knoxshell-1.6.1-TDP-0.1.0-SNAPSHOT
lrwxrwxrwx.  1 root root     55 May 11 22:35 phoenix -> /opt/tdp/phoenix-hbase-2.1-5.1.3-TDP-0.1.0-SNAPSHOT-bin
drwxr-xr-x.  6 root root   4.0K Jan 22  2020 phoenix-hbase-2.1-5.1.3-TDP-0.1.0-SNAPSHOT-bin
DanielJohnHarty commented 2 years ago

Just tested your suggested owner/permissions for knox installation in getting-started but knox-gateway service fails to start with this error:

[root@edge-01 vagrant]# systemctl start knox-gateway.service
Job for knox-gateway.service failed because the control process exited with error code. See "systemctl status knox-gateway.service" and "journalctl -xe" for details.
[root@edge-01 vagrant]# journalctl -xe
May 12 13:37:18 edge-01.tdp systemd[1]: Stopped Knox Gateway.
-- Subject: Unit knox-gateway.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit knox-gateway.service has finished shutting down.
May 12 13:37:18 edge-01.tdp systemd[1]: start request repeated too quickly for knox-gateway.service
May 12 13:37:18 edge-01.tdp systemd[1]: Failed to start Knox Gateway.
-- Subject: Unit knox-gateway.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit knox-gateway.service has failed.
-- 
-- The result is failed.
May 12 13:37:18 edge-01.tdp systemd[1]: Unit knox-gateway.service entered failed state.
May 12 13:37:18 edge-01.tdp systemd[1]: knox-gateway.service failed.
If I manually execute the service file command as root, it looks like this:

[root@edge-01 tdp]# /opt/tdp/knox/bin/gateway.sh start --config /etc/knox/conf/ -Djavax.net.ssl.trustStrore=/var/lib/knox/data/security/keystores/truststore.jks This command /opt/tdp/knox/bin/gateway.sh must not be run as root.

rpignolet commented 1 year ago

The problem is with all ranger setup.sh script.