Git Product home page Git Product logo

oneclick-hadoop-launcher's People

Contributors

sashaov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

david206

oneclick-hadoop-launcher's Issues

Cygwin: rsync can't copy the jar file to host

I am using Cygwin.

The error I get while running mvn hadoop-launcher:run:

! The source and destination cannot both be remote.
! rsync error: syntax or usage error (code 1) at /home/lapo/package/rsync-3.0.9-1/src/rsync-3.0.9/main.c(1148) [Receiver=3.0.9]
! The source and destination cannot both be remote.

Added some debug logs, and found that the plugin tries to copy the jar file from D:\My Documents\GitHub\oneclick-hadoop-launcher\hadoop-word-count\target\hadoop-word-count-1.0.jar:

rsync -azv -e ssh -o D:\My Documents\GitHub\oneclick-hadoop-launcher\hadoop-word-count\target\hadoop-word-count-1.0.jar host:~/hadoop-word-count/lib/

The absolutePath of the source jar doesn't fit the cygwin path format.
It should be:

rsync -azv -e ssh -o /cygdrive/d/My\ Documents/GitHub/oneclick-hadoop-launcher/hadoop-word-count/target/hadoop-word-count-1.0.jar host:~/hadoop-word-count/lib/

Integrate with Gradle

Gradle is an up-and-coming build system which grows in usage (particularily, in LinkedIn). Create a gradle plugin like the Maven one

Allow deep customization of executed commands

Use cases:

  1. Add -K to the ssh command to support Kerberos authentication
  2. Override "rsync" command by a custom script to allow running on CYGWIN

Here is an example configuration for customizing the commands:

      <plugin>
        <configuration>
          ...
          <commands>
            <ssh.options>-K</ssh.options>
          </commands>

Distributed Cache Exception

If there is already a job running, uploading the same jar with different parameters will change the jar in the distributed cache which results in an Exception

Jar incompatability

It would be great to have a smart system where a version of a jar is bumped, the old jar is deleted from the gateway. Otherwise we will have version incompatibility issues.

Autokill on process interruptions

When the build is interrupted, the Hadoop job remains orphaned. This(these) job(s) need to be killed.

This can be done in the wrapper that would remember the time it started and upon exit, find all jobs started by this user. This is potentially dangerous as the user could have started jobs at the same time so we will also need configuration parameter, true

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.