Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.1.0
    • Component/s: core
    • Labels:
      None

      Description

      It would be useful to have a CLI for carrying out basic cluster operations: launch, destroy, etc. This would be a separate Maven module.

      1. WHIRR-33.patch
        38 kB
        Tom White
      2. WHIRR-33.patch
        31 kB
        Tom White
      3. WHIRR-33.patch
        30 kB
        Tom White
      4. WHIRR-33.patch
        27 kB
        Tom White

        Issue Links

          Activity

          Hide
          Tom White added a comment -

          It would be nice to avoid wrapper scripts (these can lead to portability problems), so we might create a runnable JAR file containing all code and dependencies. (Avro takes this approach with its tools jar.)

          Also, JOpt Simple (http://jopt-simple.sourceforge.net/index.html) looks like a good command line args parser (again, used by Avro).

          Show
          Tom White added a comment - It would be nice to avoid wrapper scripts (these can lead to portability problems), so we might create a runnable JAR file containing all code and dependencies. (Avro takes this approach with its tools jar.) Also, JOpt Simple ( http://jopt-simple.sourceforge.net/index.html ) looks like a good command line args parser (again, used by Avro).
          Hide
          Patrick Hunt added a comment -

          +1 for staying away from (bash) scripts for cli, would be great if everything could be driven from mvn. Simplifies greatly making cli work on all platforms.

          Show
          Patrick Hunt added a comment - +1 for staying away from (bash) scripts for cli, would be great if everything could be driven from mvn. Simplifies greatly making cli work on all platforms.
          Hide
          Tom White added a comment -

          Work in progress patch, needs WHIRR-47.

          Show
          Tom White added a comment - Work in progress patch, needs WHIRR-47 .
          Hide
          Tom White added a comment -

          Work in progress patch.

          Show
          Tom White added a comment - Work in progress patch.
          Hide
          Tom White added a comment -

          With this patch I successfully started a Hadoop cluster with

          java -jar cli/target/whirr-cli-0.1.0-SNAPSHOT.jar launch-cluster --cloud-identity=$AWS_ACCESS_KEY_ID \
            --cloud-credential=$AWS_SECRET_ACCESS_KEY hadoop tomhadoopcluster 1 nn+jt 1 dn+tt
          

          Then stopped it with.

          java -jar cli/target/whirr-cli-0.1.0-SNAPSHOT.jar destroy-cluster --cloud-identity=$AWS_ACCESS_KEY_ID \
            --cloud-credential=$AWS_SECRET_ACCESS_KEY hadoop tomhadoopcluster
          

          I think this is ready to go in, but would appreciate a review.

          Show
          Tom White added a comment - With this patch I successfully started a Hadoop cluster with java -jar cli/target/whirr-cli-0.1.0-SNAPSHOT.jar launch-cluster --cloud-identity=$AWS_ACCESS_KEY_ID \ --cloud-credential=$AWS_SECRET_ACCESS_KEY hadoop tomhadoopcluster 1 nn+jt 1 dn+tt Then stopped it with. java -jar cli/target/whirr-cli-0.1.0-SNAPSHOT.jar destroy-cluster --cloud-identity=$AWS_ACCESS_KEY_ID \ --cloud-credential=$AWS_SECRET_ACCESS_KEY hadoop tomhadoopcluster I think this is ready to go in, but would appreciate a review.
          Hide
          Adrian Cole added a comment -

          I've tested and this is safe to go in.

          I'd recommend a couple options, which we can address after it is in the SVN repo:

          1. verbose option which turns on the "jclouds.compute" logger to DEBUG level. Using this, the user can see all actions take place
          2. status command

          good job!

          Show
          Adrian Cole added a comment - I've tested and this is safe to go in. I'd recommend a couple options, which we can address after it is in the SVN repo: 1. verbose option which turns on the "jclouds.compute" logger to DEBUG level. Using this, the user can see all actions take place 2. status command good job!
          Hide
          Tom White added a comment -

          Thanks for the review, Adrian. I'll create JIRAs for your suggestions. Here's a slightly updated patch which passes RAT and checkstyle (no code changes). I plan to commit this soon.

          Show
          Tom White added a comment - Thanks for the review, Adrian. I'll create JIRAs for your suggestions. Here's a slightly updated patch which passes RAT and checkstyle (no code changes). I plan to commit this soon.
          Hide
          Tom White added a comment -

          I've just committed this.

          Show
          Tom White added a comment - I've just committed this.

            People

            • Assignee:
              Tom White
              Reporter:
              Tom White
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development