Overview:

Apache Slider enables deployment, monitoring and management of existing distributed applications on a YARN cluster without any changes to the application itself. With IOP 4.1, the Slider view is one of a number of built-in views that are pre-deployed on Ambari and can be used to deploy and manage such applications from the Ambari web interface.

Creating a View Instance:

To create a Slider view instance, navigate to admin->Manage Ambari. This takes you to the Ambari admin view. Click on Views link under section Views.

Expand SLIDER and click on Create Instance to open up the Create Instance UI. In the Details section, specify the instance name, display name and description for the view.

In the Settings section, specify values for the ambari server url that you wish to connect to and and credentials to be used.  Also specify, the user that the view instance should run as. By default, the YARN service user for e.g. ‘yarn’ in this case will be used. Specify other settings as necessary.

Before saving the view instance, ensure that the HDFS home folder for the YARN service user is created and accessible.

To do this, execute the following commands on the Ambari server host:

su hdfs

hdfs dfs -mkdir /user/yarn

hdfs dfs -chown yarn:hdfs /user/yarn

Save the view instance and you will see a popup that notifies you that the view was successfully created.

Executing the Slider view instance:

Once the view is created, you can run it by opening up the view instance and clicking on “Go to instance” link or by clicking on the view instance listed in the menu under the icon .

In the Slider view, you can view slider applications deployed on the cluster.

For the purpose of this blog, we will create an application and see the various options available to configure and monitor it.

We will deploy the Slider HBase application package that is built with the Slider rpm, and is installed by Ambari. Post installation, the package is located under /usr/iop/4.1.0.0/slider/app-package/hbase. On the Ambari server, we will copy this package to the apps folder (/var/lib/ambari-server/resources/apps) to make it available to Ambari.

Once this is done, we are ready to create a Slider application in the view. To create the application, do the following:

1. Click on the + Create App button and in the wizard that opens up, select the application that you wish to deploy. For this e.g. we will select HBASE (1.1.1-IBM-3). Provide a name for the application and specify a Queue Name and other options as needed.

2. Click on ‘Next’. Allocate cluster resources for various components of the application.

3. Click on ‘Next’ and provide configuration details for the application.

4. Review the application summary and configuration and click on ‘Finish’.

In the Slider view, you can now monitor the status of the application that was deployed. The application status is initially “ACCEPTED“.

Once, it has been deployed successfully, the status changes to “RUNNING“.

View tabs:

Click on the Application to view the Summary and Configs tab. You can also navigate to the Yarn application and view the HBASE Master status through the quick links available.

There are options to stop and start and also destroy the application (once its stopped) as required.

Join The Discussion

Your email address will not be published. Required fields are marked *