While I do the work for the issue [1], I've just tested manually
Incron with success, the steps for setting up:

1. vagrant ssh build
2. sudo yum install inotify-tools incron -y
3. sudo systemctl start incrond
4. incrontab -e
/opt/myriad/myriad-scheduler/build/libs/ IN_MODIFY,IN_CREATE cp -f
/opt/myriad/myriad-scheduler/build/libs/*
/opt/hadoop/share/hadoop/yarn/lib/
/opt/myriad/myriad-executor/build/libs/ IN_MODIFY,IN_CREATE cp -f
/opt/myriad/myriad-executor/build/libs/*
/opt/hadoop/share/hadoop/yarn/lib/
5. Build myriad with "./gradlew build" or with IDEA (imported Myriad
as Gradle project and Gradle run task -> build)


[1] https://issues.apache.org/jira/browse/MYRIAD-268
--
Javi Roman

Twitter: @javiromanrh
GitHub: github.com/javiroman
Linkedin: es.linkedin.com/in/javiroman
Big Data Blog: dataintensive.info
Apache Id: javiroman
On Wed, Jun 6, 2018 at 5:10 PM Javi Roman <jroman.espi...@gmail.com> wrote:
>
> Great idea.
>
> I going to modify the build VM installing incron. This sort of cron
> based on Inotify run commands when tracked files change. Incron can
> track the JAR files and copy them to the target location instantly.
>
> Best.
> --
> Javi Roman
>
> Twitter: @javiromanrh
> GitHub: github.com/javiroman
> Linkedin: es.linkedin.com/in/javiroman
> Big Data Blog: dataintensive.info
> Apache Id: javiroman
> On Wed, Jun 6, 2018 at 4:55 PM Juan P <jpgg...@gmail.com> wrote:
> >
> > this functionality is wonderful!! the speed of development grows!!
> >
> > does it make sense to add a gradle task (for example) and replace the
> > Myriad jar in an automated way ?? For me it would be great ...: D
> >
> > Thanks Javi!
> >
> > On 6 June 2018 at 15:46, Javi Roman <jroman.espi...@gmail.com> wrote:
> >
> > > Hi!
> > >
> > > Here [1] support for mounting a local folder (laptop folder) into one
> > > of the guest VMs of Vagrant. The idea is mount our development Myriad
> > > repository into the "build" VM, so we can use our favourite IDE for
> > > hacking Myriad. The output artifacts are available in the build VM for
> > > deployment without a explicit copy from the laptop.
> > >
> > > [1] https://github.com/apache/incubator-myriad/pull/112/files
> > > --
> > > Javi Roman
> > >
> > > Twitter: @javiromanrh
> > > GitHub: github.com/javiroman
> > > Linkedin: es.linkedin.com/in/javiroman
> > > Big Data Blog: dataintensive.info
> > > Apache Id: javiroman
> > >

Reply via email to