Charles Hedrick created AMBARI-25222:
----------------------------------------

             Summary: ambari metrics collector won't start
                 Key: AMBARI-25222
                 URL: https://issues.apache.org/jira/browse/AMBARI-25222
             Project: Ambari
          Issue Type: Documentation
          Components: metrics
    Affects Versions: 2.7.3
            Reporter: Charles Hedrick


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.

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to