Details

    • Type: New Feature
    • Status: Resolved
    • Priority: 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
          tomwhite Tom White added a comment -

          I've just committed this.

          Show
          tomwhite Tom White added a comment - I've just committed this.
          Hide
          tomwhite 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
          tomwhite 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
          adriancole 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
          adriancole 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
          tomwhite 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
          tomwhite 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
          tomwhite Tom White added a comment -

          Work in progress patch.

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

          Work in progress patch, needs WHIRR-47.

          Show
          tomwhite Tom White added a comment - Work in progress patch, needs WHIRR-47 .
          Hide
          phunt 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
          phunt 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
          tomwhite 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
          tomwhite 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).

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development