ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Hill <greg.h...@RACKSPACE.COM>
Subject Re: Systemd update breaks ambari-server and ambari-agent
Date Wed, 30 Dec 2015 20:03:49 GMT
https://issues.apache.org/jira/browse/AMBARI-14526

I'd attempt a patch, but I don't know the packaging stuff that well and I've got some urgent
projects ATM.  Should be relatively straightforward to someone who does, though, and if nobody
else gets to it, I might take a stab in a couple weeks.

Greg

From: Sumit Mohanty <smohanty@hortonworks.com<mailto:smohanty@hortonworks.com>>
Reply-To: "user@ambari.apache.org<mailto:user@ambari.apache.org>" <user@ambari.apache.org<mailto:user@ambari.apache.org>>
Date: Wednesday, December 30, 2015 at 1:29 PM
To: "user@ambari.apache.org<mailto:user@ambari.apache.org>" <user@ambari.apache.org<mailto:user@ambari.apache.org>>
Subject: Re: Systemd update breaks ambari-server and ambari-agent


​Thanks Greg. Can you open a JIRA and add these to the description.


-Sumit

________________________________
From: Greg Hill <greg.hill@RACKSPACE.COM<mailto:greg.hill@RACKSPACE.COM>>
Sent: Wednesday, December 30, 2015 11:21 AM
To: user@ambari.apache.org<mailto:user@ambari.apache.org>
Subject: Re: Systemd update breaks ambari-server and ambari-agent

This seems to work so far, in case someone else runs into the same problem:

/usr/lib/systemd/system/ambari-server.service
--------------------------------------------------------------

[Unit]
Description=ambari-server service
After=xe-linux-distribution.service

[Service]
Type=forking
ExecStart=/usr/sbin/ambari-server start
ExecStop=/usr/sbin/ambari-server stop

[Install]
WantedBy=multi-user.target


From: Greg <greg.hill@rackspace.com<mailto:greg.hill@rackspace.com>>
Reply-To: "user@ambari.apache.org<mailto:user@ambari.apache.org>" <user@ambari.apache.org<mailto:user@ambari.apache.org>>
Date: Wednesday, December 30, 2015 at 10:10 AM
To: "user@ambari.apache.org<mailto:user@ambari.apache.org>" <user@ambari.apache.org<mailto:user@ambari.apache.org>>
Subject: Re: Systemd update breaks ambari-server and ambari-agent

I was mistaken on one detail, ambari-agent does appear to still work with systemd, just not
ambari-server.

Greg

From: Greg <greg.hill@rackspace.com<mailto:greg.hill@rackspace.com>>
Reply-To: "user@ambari.apache.org<mailto:user@ambari.apache.org>" <user@ambari.apache.org<mailto:user@ambari.apache.org>>
Date: Wednesday, December 30, 2015 at 9:31 AM
To: "user@ambari.apache.org<mailto:user@ambari.apache.org>" <user@ambari.apache.org<mailto:user@ambari.apache.org>>
Subject: Systemd update breaks ambari-server and ambari-agent

A recent CentOS update (7.2) is causing ambari-server to not work with systemd.

systemctl restart ambari-server
Unit ambari-server.service failed to load: No such file or directory.

This is because ambari-server does not install a service definition file in:
/usr/lib/systemd/system/ambari-server.service

I can't find anything in the Ambari git repo referencing systemd, so maybe this hasn't been
addressed yet?

I think what maybe happened was that RHEL/CentOS provided a shim to use the old sysvinit init
script with systemd and they have now either removed or broken that.

Does anyone have a working systemd service definition for ambari-agent and ambari-server by
chance?  Otherwise, I'll figure out how to write one I guess (first time for everything).

Greg
Mime
View raw message