You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Michael Harp (JIRA)" <ji...@apache.org> on 2014/04/24 19:25:15 UTC
[jira] [Commented] (AMBARI-5535) HostCleanup.py script fails on
import OSCheck
[ https://issues.apache.org/jira/browse/AMBARI-5535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13979978#comment-13979978 ]
Michael Harp commented on AMBARI-5535:
--------------------------------------
On sles11sp1 and suse11sp1 site-packages is in /usr/lib64/python2.6 but ambari installs the agent modules in /usr/lib/python2.6. Ambari agent exports PYTHONPATH at startup but PYTHONPATH is not set by default in a normal user term session leading to the import error.
I think the simple approach is to update the instructions with an export included;
export PYTHONPATH=/usr/lib/python2.6/site-packages;python /usr/lib/python2.6/site-packages/ambari_agent/HostCleanup.py --silent --skip=users
> HostCleanup.py script fails on import OSCheck
> ---------------------------------------------
>
> Key: AMBARI-5535
> URL: https://issues.apache.org/jira/browse/AMBARI-5535
> Project: Ambari
> Issue Type: Bug
> Affects Versions: 1.5.1
> Environment: sles11sp1
> Reporter: Michael Harp
>
> python /usr/lib/python2.6/site-packages/ambari_agent/HostCleanup.py --silent --skip=users
> Traceback (most recent call last):
> File "/usr/lib/python2.6/site-packages/ambari_agent/HostCleanup.py", line 34, in <module>
> from common_functions import OSCheck
> ImportError: No module named common_functions
--
This message was sent by Atlassian JIRA
(v6.2#6252)