You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by "Yang Hao (JIRA)" <ji...@apache.org> on 2015/01/13 13:33:35 UTC
[jira] [Commented] (SLIDER-752) No easy way to get list of
applications via API from SliderClient
[ https://issues.apache.org/jira/browse/SLIDER-752?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14275140#comment-14275140 ]
Yang Hao commented on SLIDER-752:
---------------------------------
Then you should know how to get the applicationID. A way is to use the java class "SliderYarnClientImpl", and add the hadoop_conf_dit to your classpath, then init this class with
SliderYarnClientImpl yarnClient = null;
yarnClient = new SliderYarnClientImpl();
yarnClient.init(new Configuration());
yarnClient.start();
You can get the application list as you want
> No easy way to get list of applications via API from SliderClient
> -----------------------------------------------------------------
>
> Key: SLIDER-752
> URL: https://issues.apache.org/jira/browse/SLIDER-752
> Project: Slider
> Issue Type: Bug
> Components: core
> Affects Versions: Slider 0.61
> Reporter: Srimanth Gunturi
> Fix For: Slider 0.61
>
>
> Slider-View is trying to list applications launched by Slider. However there is no API friendly call to get the list of apps. The method [SliderClient#actionList()|https://git-wip-us.apache.org/repos/asf?p=incubator-slider.git;a=blob;f=slider-core/src/main/java/org/apache/slider/client/SliderClient.java;h=59d317eea73a9a14caa7f2479a5ffc95c748516f;hb=develop#l2023] directly gets applications and prints output.
> We need an API to get the list of applications, and it should be the same as the CLI invocation.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)