Open gboutry opened 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.
The problem is with all ranger setup.sh
script.
Knox installation has
knox:hadoop
as owner and744
as rights while it should beroot:root
and755