You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Erin Boyd <eb...@redhat.com> on 2015/06/04 06:05:50 UTC

updating rpms with 2.3

Has anyone seen this? If you go to a newer build of HDP 2.3 by updating the rpms, the agent will not restart:
[root@hwx60 tmp]# ambari-server start
Using python  /usr/bin/python2.6
Starting ambari-server
Ambari Server running with administrator privileges.
Organizing resource files at /var/lib/ambari-server/resources...
Server PID at: /var/run/ambari-server/ambari-server.pid
Server out at: /var/log/ambari-server/ambari-server.out
Server log at: /var/log/ambari-server/ambari-server.log
Waiting for server start....................
Ambari Server 'start' completed successfully.
[root@hwx60 tmp]# ambari-agent start
Verifying Python version compatibility...
Using python  /usr/bin/python2.6
Checking for previously running Ambari Agent...
Starting ambari-agent
Verifying ambari-agent process status...
ERROR: ambari-agent start failed. For more details, see /var/log/ambari-agent/ambari-agent.out:
====================
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/ambari_agent/AmbariAgent.py", line 24, in <module>
    from Controller import AGENT_AUTO_RESTART_EXIT_CODE
  File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 43, in <module>
    from ambari_agent.AlertSchedulerHandler import AlertSchedulerHandler
  File "/usr/lib/python2.6/site-packages/ambari_agent/AlertSchedulerHandler.py", line 33, in <module>
    from alerts.metric_alert import MetricAlert
  File "/usr/lib/python2.6/site-packages/ambari_agent/alerts/metric_alert.py", line 32, in <module>
    from resource_management.libraries.functions.curl_krb_request import curl_krb_request
ImportError: No module named curl_krb_request
====================
Agent out at: /var/log/ambari-agent/ambari-agent.out
Agent log at: /var/log/ambari-agent/ambari-agent.log
[root@hwx60 tmp]# 

Erin

Re: updating rpms with 2.3

Posted by Jonathan Hurley <jh...@hortonworks.com>.
That module is new, but should exist:

[root@c6401 ambari-agent]# !find
find . -name "curl_krb_request.py"
./lib/resource_management/libraries/functions/curl_krb_request.py

Is this with a clean agent install or in a development environment?

> On Jun 4, 2015, at 12:05 AM, Erin Boyd <eb...@redhat.com> wrote:
> 
> Has anyone seen this? If you go to a newer build of HDP 2.3 by updating the rpms, the agent will not restart:
> [root@hwx60 tmp]# ambari-server start
> Using python  /usr/bin/python2.6
> Starting ambari-server
> Ambari Server running with administrator privileges.
> Organizing resource files at /var/lib/ambari-server/resources...
> Server PID at: /var/run/ambari-server/ambari-server.pid
> Server out at: /var/log/ambari-server/ambari-server.out
> Server log at: /var/log/ambari-server/ambari-server.log
> Waiting for server start....................
> Ambari Server 'start' completed successfully.
> [root@hwx60 tmp]# ambari-agent start
> Verifying Python version compatibility...
> Using python  /usr/bin/python2.6
> Checking for previously running Ambari Agent...
> Starting ambari-agent
> Verifying ambari-agent process status...
> ERROR: ambari-agent start failed. For more details, see /var/log/ambari-agent/ambari-agent.out:
> ====================
> Traceback (most recent call last):
>  File "/usr/lib/python2.6/site-packages/ambari_agent/AmbariAgent.py", line 24, in <module>
>    from Controller import AGENT_AUTO_RESTART_EXIT_CODE
>  File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 43, in <module>
>    from ambari_agent.AlertSchedulerHandler import AlertSchedulerHandler
>  File "/usr/lib/python2.6/site-packages/ambari_agent/AlertSchedulerHandler.py", line 33, in <module>
>    from alerts.metric_alert import MetricAlert
>  File "/usr/lib/python2.6/site-packages/ambari_agent/alerts/metric_alert.py", line 32, in <module>
>    from resource_management.libraries.functions.curl_krb_request import curl_krb_request
> ImportError: No module named curl_krb_request
> ====================
> Agent out at: /var/log/ambari-agent/ambari-agent.out
> Agent log at: /var/log/ambari-agent/ambari-agent.log
> [root@hwx60 tmp]# 
> 
> Erin