[
https://issues.apache.org/jira/browse/SLIDER-306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14183468#comment-14183468
]
Steve Loughran commented on SLIDER-306:
---------------------------------------
I've checked in a descendant of the code submission which keeps the --live but
drops the --history, replacing it with a --state <state> command; examples
shown above.
# list all app instances you have (e.g, those in the filesystem)
# does a 1-line per entry listing, including app state, app ID and URL if it is
running
# does more details only on --verbose
# select on a specific state (e.g --state FAILED). this is the same feature
exists now supports. Its very good for testing.
the previous behaviour -list only live instances, is now
{code}
slider list --live
{code}
The final change is the return code, which returns unknown cluster -69- if you
explicitly list a cluster and it is not defined at all:
{code}
slider list unknown-cluster
{code}
if you ask for it in a specific state, the return code is -1. It's a known
cluster in the wrong state
e.g if we had a cluster hbase1 that wasn't running, it could be listed
{code}
$ slider list hbase1
hbase1
$ echo $?
0
{code}
ask for it not live and nothing comes back -the -1 exit code indicates "not in
this state"
{code}
$slider list hbase1 --live
$ echo $?
-1
{code}
> Slider list command live and history options
> --------------------------------------------
>
> Key: SLIDER-306
> URL: https://issues.apache.org/jira/browse/SLIDER-306
> Project: Slider
> Issue Type: Improvement
> Components: client
> Affects Versions: Slider 0.40
> Reporter: Vasanth kumar RJ
> Assignee: Vasanth kumar RJ
> Priority: Minor
> Fix For: Slider 0.60
>
> Attachments: SLIDER-306-002.patch, SLIDER-306-005.patch,
> SLIDER-306-1.patch, SLIDER-306-update-1.patch, SLIDER-306.patch
>
>
> Currently slider list command shows all the finished and running instances
> which is not order on any field.
> Patch introduced live and history option to view live instances and finished
> instances.
> When listing all instances or only history/finished instances, first shows
> finished instance ordered by finish time and then show running instances
> ordered by start time.
> //List only live
> >slider list --live
> //List only history or finished
> >slider list --history
> >slider list c1 --history
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)