Details
-
Documentation
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.7.3
-
None
-
None
Description
I am using Ambari 2.7.3 as part of Hortonworks.
After a new install, the Metrics collector won't start. One problem (there seems to be more than one) is
WARNING 2019-04-01 09:24:55,034 shell.py:826 - can not switch user for RUN_COMMAND.
Looking at the source code, I don't see how this could ever work. When the code in commons shell.py was reorganized to be os-independent, a variable _threadLocal was created. However it is never set to anything other than None. So
self._threadLocal.uid = user
Is always going to create an exception, because _threadLocal will always be None.