[
https://issues.apache.org/jira/browse/AURORA-282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Damien Hardy updated AURORA-282:
--------------------------------
Attachment: fpm_deb.patch
This is a first version of a patch to create a debian package for aurora.
unfortunatly I can't have aurora running well using init script.
Using vagrant provided I can replace /usr/local/aurora-scheduler.. by
/usr/lib/aurora-scheduler in /usr/local/sbin/aurora.sh and it works using
/etc/rc.local script.
I even dump env and set -x in /usr/lib/aurora-scheduler/bin/aurora-scheduler
and use user root.
exec command is the same
But running with /etc/init.d/aurora-scheduler start end with a
{code}
I0320 10:07:56.339293 1672 group.cpp:629] Trying to get
'/mesos/master/info_0000000010' in ZooKeeper
I0320 10:07:56.341838 1672 detector.cpp:351] A new leading master
([email protected]:5050) is detected
I0320 10:07:56.342756 1672 sched.cpp:218] No credentials provided. Attempting
to register without authentication
I0320 10:07:56.343070 1672 sched.cpp:230] Detecting new master
E0320 10:08:56.326 THREAD20
org.apache.aurora.scheduler.SchedulerLifecycle$6$3.run: Framework has not been
registered within the tolerated delay.
I0320 10:08:56.327 THREAD20
com.twitter.common.util.StateMachine$Builder$1.execute: SchedulerLifecycle
state machine transition LEADER_AWAITING_REGISTRATION -> DEAD
I0320 10:08:56.336 THREAD20
com.twitter.common.util.StateMachine$Builder$1.execute: storage state machine
transition READY -> STOPPED
E0320 10:08:56.336 THREAD18
org.apache.aurora.scheduler.SchedulerLifecycle$SchedulerCandidateImpl.onDefeated:
Lost leadership, committing suicide.
I0320 10:08:56.337 THREAD18
com.twitter.common.util.StateMachine$Builder$1.execute: SchedulerLifecycle
state machine transition DEAD -> DEAD
I0320 10:08:56.338 THREAD18
org.apache.aurora.scheduler.SchedulerLifecycle$8.execute: Shutdown already
invoked, ignoring extra call.
I0320 10:08:56.338 THREAD20 com.twitter.common.application.Lifecycle.shutdown:
Shutting down application
I0320 10:08:56.339 THREAD20
com.twitter.common.application.ShutdownRegistry$ShutdownRegistryImpl.execute:
Executing 7 shutdown commands.
W0320 10:08:56.340 THREAD18
com.twitter.common.zookeeper.CandidateImpl$4.onGroupChange: All candidates have
temporarily left the group: Group /aurora/scheduler
I0320 10:08:56.344 THREAD20
org.apache.aurora.scheduler.app.AppModule$RegisterShutdownStackPrinter$2.execute:
Shutdown initiated by: Thread: Lifecycle-0 (id 20)
java.lang.Thread.getStackTrace(Thread.java:1588)
org.apache.aurora.scheduler.app.AppModule$RegisterShutdownStackPrinter$2.execute(AppModule.java:141)
com.twitter.common.application.ShutdownRegistry$ShutdownRegistryImpl.execute(ShutdownRegistry.java:88)
com.twitter.common.application.Lifecycle.shutdown(Lifecycle.java:92)
org.apache.aurora.scheduler.SchedulerLifecycle$8.execute(SchedulerLifecycle.java:382)
org.apache.aurora.scheduler.SchedulerLifecycle$8.execute(SchedulerLifecycle.java:354)
com.twitter.common.base.Closures$4.execute(Closures.java:120)
com.twitter.common.base.Closures$3.execute(Closures.java:98)
com.twitter.common.util.StateMachine.transition(StateMachine.java:191)
org.apache.aurora.scheduler.SchedulerLifecycle$6$3.run(SchedulerLifecycle.java:277)
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
java.util.concurrent.FutureTask.run(FutureTask.java:262)
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
java.lang.Thread.run(Thread.java:744)
I0320 10:08:56.347 THREAD20
com.twitter.common.stats.TimeSeriesRepositoryImpl$3.execute: Variable sampler
shut down
I0320 10:08:56.347 THREAD20
org.apache.aurora.scheduler.thrift.ThriftServerLauncher$1.execute: Stopping
thrift server.
I0320 10:08:56.348 THREAD20
org.apache.aurora.scheduler.thrift.ThriftServer.shutdown: Received shutdown
request, stopping server.
I0320 10:08:56.348 THREAD20
org.apache.aurora.scheduler.thrift.ThriftServer.setStatus: Moving from status
ALIVE to STOPPING
I0320 10:08:56.349 THREAD20
org.apache.aurora.scheduler.thrift.ThriftServer.setStatus: Moving from status
STOPPING to STOPPED
I0320 10:08:56.349 THREAD20
com.twitter.common.application.modules.HttpModule$HttpServerLauncher$1.execute:
Shutting down embedded http server
I0320 10:08:56.350 THREAD20 org.mortbay.log.Slf4jLog.info: Stopped
[email protected]:8081
I0320 10:08:56.452 THREAD20
com.twitter.common.util.StateMachine$Builder$1.execute: SchedulerLifecycle
state machine transition DEAD -> DEAD
I0320 10:08:56.452 THREAD20
org.apache.aurora.scheduler.SchedulerLifecycle$8.execute: Shutdown already
invoked, ignoring extra call.
I0320 10:08:56.453 THREAD1 com.twitter.common.application.AppLauncher.run:
Application run() exited.
{code}
and a can't understand why
Hope some help in posting this JIRA
> packaging using FPM (deb)
> -------------------------
>
> Key: AURORA-282
> URL: https://issues.apache.org/jira/browse/AURORA-282
> Project: Aurora
> Issue Type: Story
> Components: Packaging, Scheduler
> Reporter: Damien Hardy
> Labels: deb, fpm, gradle, linux, newbie, rpm
> Attachments: fpm_deb.patch
>
>
> Using fpm gradle plugin we could provide easy way to deploy scheduler as a
> linux native package (deb, rpm)
> It is based on Aplication gradle plugin used to provide Zip and Tar package
> already.
--
This message was sent by Atlassian JIRA
(v6.2#6252)