You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myriad.apache.org by Javi Roman <jr...@gmail.com> on 2018/06/06 13:46:52 UTC

Add support for mounting local folder to VM at vagrant

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

Re: Add support for mounting local folder to VM at vagrant

Posted by Juan P <jp...@gmail.com>.
Great job Javi!
Would it be interesting to do the same with the configuration files?

On 6 June 2018 at 19:09, Javi Roman <jr...@gmail.com> wrote:

> 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 <jr...@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 <jp...@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 <jr...@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
> > > >
>

Re: Add support for mounting local folder to VM at vagrant

Posted by Javi Roman <jr...@gmail.com>.
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 <jr...@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 <jp...@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 <jr...@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
> > >

Re: Add support for mounting local folder to VM at vagrant

Posted by Javi Roman <jr...@gmail.com>.
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 <jp...@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 <jr...@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
> >

Re: Add support for mounting local folder to VM at vagrant

Posted by Juan P <jp...@gmail.com>.
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 <jr...@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
>