[ 
https://issues.apache.org/jira/browse/SPARK-5629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14325346#comment-14325346
 ] 

Nicholas Chammas commented on SPARK-5629:
-----------------------------------------

For example, you run:

{code}
$ spark-ec2 describe my-spark-cluster
{code}

And you get back something like this:

{code}
my-spark-cluster:
  launched: "2015-02-18 14:03:22 UTC"
  status: running
  nodes:
    master: ec2-54-69-105-224.us-west-2.compute.amazonaws.com
    slaves:
      - ec2-54-69-1215-97.us-west-2.compute.amazonaws.com
      - ec2-54-69-186-101.us-west-2.compute.amazonaws.com
      - ec2-54-69-186-109.us-west-2.compute.amazonaws.com
{code}

Actually, since this is both valid YAML and very human-readable, we probably 
don't need the {{--machine-readable}} option mentioned in the ticket body.

> Add spark-ec2 action to return info about an existing cluster
> -------------------------------------------------------------
>
>                 Key: SPARK-5629
>                 URL: https://issues.apache.org/jira/browse/SPARK-5629
>             Project: Spark
>          Issue Type: Improvement
>          Components: EC2
>            Reporter: Nicholas Chammas
>            Priority: Minor
>
> You can launch multiple clusters using spark-ec2. At some point, you might 
> just want to get some information about an existing cluster.
> Use cases include:
> * Wanting to check something about your cluster in the EC2 web console.
> * Wanting to feed information about your cluster to another tool (e.g. as 
> described in [SPARK-5627]).
> So, in addition to the [existing 
> actions|https://github.com/apache/spark/blob/9b746f380869b54d673e3758ca5e4475f76c864a/ec2/spark_ec2.py#L115]:
> * {{launch}}
> * {{destroy}}
> * {{login}}
> * {{stop}}
> * {{start}}
> * {{get-master}}
> * {{reboot-slaves}}
> We add a new action, {{describe}}, which describes an existing cluster if 
> given a cluster name, and all clusters if not.
> Some examples:
> {code}
> # describes all clusters launched by spark-ec2
> spark-ec2 describe
> {code}
> {code}
> # describes cluster-1
> spark-ec2 describe cluster-1
> {code}
> In combination with the proposal in [SPARK-5627]:
> {code}
> # describes cluster-3 in a machine-readable way (e.g. JSON)
> spark-ec2 describe cluster-3 --machine-readable
> {code}
> Parallels in similar tools include:
> * [{{juju status}}|https://juju.ubuntu.com/docs/] from Ubuntu Juju
> * [{{starcluster 
> listclusters}}|http://star.mit.edu/cluster/docs/latest/manual/getting_started.html?highlight=listclusters#logging-into-a-worker-node]
>  from MIT StarCluster



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to