You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@whirr.apache.org by "Tom White (JIRA)" <ji...@apache.org> on 2010/06/21 05:10:23 UTC

[jira] Created: (WHIRR-33) Add a CLI

Add a CLI
---------

                 Key: WHIRR-33
                 URL: https://issues.apache.org/jira/browse/WHIRR-33
             Project: Whirr
          Issue Type: New Feature
          Components: core
            Reporter: Tom White


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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WHIRR-33) Add a CLI

Posted by "Adrian Cole (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-33?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12898608#action_12898608 ] 

Adrian Cole commented on WHIRR-33:
----------------------------------

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!

> Add a CLI
> ---------
>
>                 Key: WHIRR-33
>                 URL: https://issues.apache.org/jira/browse/WHIRR-33
>             Project: Whirr
>          Issue Type: New Feature
>          Components: core
>            Reporter: Tom White
>            Assignee: Tom White
>             Fix For: 0.1.0
>
>         Attachments: WHIRR-33.patch, WHIRR-33.patch, WHIRR-33.patch
>
>
> It would be useful to have a CLI for carrying out basic cluster operations: launch, destroy, etc. This would be a separate Maven module.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WHIRR-33) Add a CLI

Posted by "Tom White (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-33?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom White updated WHIRR-33:
---------------------------

    Attachment: WHIRR-33.patch

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.

> Add a CLI
> ---------
>
>                 Key: WHIRR-33
>                 URL: https://issues.apache.org/jira/browse/WHIRR-33
>             Project: Whirr
>          Issue Type: New Feature
>          Components: core
>            Reporter: Tom White
>            Assignee: Tom White
>             Fix For: 0.1.0
>
>         Attachments: WHIRR-33.patch, WHIRR-33.patch, WHIRR-33.patch, WHIRR-33.patch
>
>
> It would be useful to have a CLI for carrying out basic cluster operations: launch, destroy, etc. This would be a separate Maven module.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WHIRR-33) Add a CLI

Posted by "Tom White (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-33?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom White updated WHIRR-33:
---------------------------

         Assignee: Tom White
    Fix Version/s: 0.1.0

> Add a CLI
> ---------
>
>                 Key: WHIRR-33
>                 URL: https://issues.apache.org/jira/browse/WHIRR-33
>             Project: Whirr
>          Issue Type: New Feature
>          Components: core
>            Reporter: Tom White
>            Assignee: Tom White
>             Fix For: 0.1.0
>
>         Attachments: WHIRR-33.patch
>
>
> It would be useful to have a CLI for carrying out basic cluster operations: launch, destroy, etc. This would be a separate Maven module.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WHIRR-33) Add a CLI

Posted by "Tom White (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-33?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom White updated WHIRR-33:
---------------------------

    Attachment: WHIRR-33.patch

With this patch I successfully started a Hadoop cluster with

{noformat}
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
{noformat}

Then stopped it with.

{noformat}
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
{noformat}

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

> Add a CLI
> ---------
>
>                 Key: WHIRR-33
>                 URL: https://issues.apache.org/jira/browse/WHIRR-33
>             Project: Whirr
>          Issue Type: New Feature
>          Components: core
>            Reporter: Tom White
>            Assignee: Tom White
>             Fix For: 0.1.0
>
>         Attachments: WHIRR-33.patch, WHIRR-33.patch, WHIRR-33.patch
>
>
> It would be useful to have a CLI for carrying out basic cluster operations: launch, destroy, etc. This would be a separate Maven module.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WHIRR-33) Add a CLI

Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-33?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12880905#action_12880905 ] 

Patrick Hunt commented on WHIRR-33:
-----------------------------------

+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.

> Add a CLI
> ---------
>
>                 Key: WHIRR-33
>                 URL: https://issues.apache.org/jira/browse/WHIRR-33
>             Project: Whirr
>          Issue Type: New Feature
>          Components: core
>            Reporter: Tom White
>
> It would be useful to have a CLI for carrying out basic cluster operations: launch, destroy, etc. This would be a separate Maven module.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WHIRR-33) Add a CLI

Posted by "Tom White (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-33?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom White updated WHIRR-33:
---------------------------

    Attachment: WHIRR-33.patch

Work in progress patch, needs WHIRR-47.

> Add a CLI
> ---------
>
>                 Key: WHIRR-33
>                 URL: https://issues.apache.org/jira/browse/WHIRR-33
>             Project: Whirr
>          Issue Type: New Feature
>          Components: core
>            Reporter: Tom White
>         Attachments: WHIRR-33.patch
>
>
> It would be useful to have a CLI for carrying out basic cluster operations: launch, destroy, etc. This would be a separate Maven module.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WHIRR-33) Add a CLI

Posted by "Tom White (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-33?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom White resolved WHIRR-33.
----------------------------

    Resolution: Fixed

I've just committed this.

> Add a CLI
> ---------
>
>                 Key: WHIRR-33
>                 URL: https://issues.apache.org/jira/browse/WHIRR-33
>             Project: Whirr
>          Issue Type: New Feature
>          Components: core
>            Reporter: Tom White
>            Assignee: Tom White
>             Fix For: 0.1.0
>
>         Attachments: WHIRR-33.patch, WHIRR-33.patch, WHIRR-33.patch, WHIRR-33.patch
>
>
> It would be useful to have a CLI for carrying out basic cluster operations: launch, destroy, etc. This would be a separate Maven module.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WHIRR-33) Add a CLI

Posted by "Tom White (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-33?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12880710#action_12880710 ] 

Tom White commented on WHIRR-33:
--------------------------------

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).

> Add a CLI
> ---------
>
>                 Key: WHIRR-33
>                 URL: https://issues.apache.org/jira/browse/WHIRR-33
>             Project: Whirr
>          Issue Type: New Feature
>          Components: core
>            Reporter: Tom White
>
> It would be useful to have a CLI for carrying out basic cluster operations: launch, destroy, etc. This would be a separate Maven module.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WHIRR-33) Add a CLI

Posted by "Tom White (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-33?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom White updated WHIRR-33:
---------------------------

    Attachment: WHIRR-33.patch

Work in progress patch.

> Add a CLI
> ---------
>
>                 Key: WHIRR-33
>                 URL: https://issues.apache.org/jira/browse/WHIRR-33
>             Project: Whirr
>          Issue Type: New Feature
>          Components: core
>            Reporter: Tom White
>            Assignee: Tom White
>             Fix For: 0.1.0
>
>         Attachments: WHIRR-33.patch, WHIRR-33.patch
>
>
> It would be useful to have a CLI for carrying out basic cluster operations: launch, destroy, etc. This would be a separate Maven module.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.