Apache Ambari Views: Configuring & Creating View Instances
1. Objective – Apache Ambari Views
In this Ambari tutorial, we will learn the whole concept of Apache Ambari Views. Also, we will see how to configure View Instances along with the way to create View Instances in Ambari.
So, let’s begin Ambari views Tutorial.
2. What are the Ambari Views?
A Framework that enables developers to create UI components, or Views, that “plug into” the Ambari Web interface is what we call Apache Ambari Views. However, automatically Ambari creates and presents some instances of Views to users when the service used by that View is added to the cluster. As an example, the YARN Queue Manager View displays to Ambari web users, if Apache YARN service is added to the cluster. Although, the Ambari Admin user must manually create a view instance, in other cases.
Have a look at Ambari Security Guide
In order to extend and customize the Ambari web, views enable us and also they help us to meet our specific needs.
Moreover, to permit third parties to plug in new resource types, Ambari Views extends our implementation, along with APIs, providers, as well as UIs to support them. Basically, Views are deployed on the Ambari Servers that enables Ambari Admins to create View instances. Also, it helps to set access privileges for users as well as groups.
3. Configuring View Instances in Ambari
Generally, we specify some basic configuration information about the view and also we configure the view to communicate with a cluster when we create a View instance. Now, when completing the Cluster Configuration section, choose one of three options on the basis of resources managed by our Ambari Server, like Local Cluster, Remote Cluster, or Custom.
Let’s learn about Ambari Views Instances in detail:
a. Local Cluster
We can select Local Cluster if we are configuring a view instance in an Ambari Server that is also managing a cluster. Basically, Ambari automatically determines the cluster configuration properties required, when we select this option.
b. Remote Cluster
However, we must select either Remote Cluster or Custom, if our Ambari Server is not managing a cluster.
Let’s revise Ambari Groups and Users
Well, we should select Remote Cluster, when we plan to configure a view to working with a cluster which is remote from an Ambari Server and that cluster is being managed by Ambari.
So, basically, on registering a Remote Cluster, it enables the Remote Cluster option. Moreover, it automatically determines the cluster configuration properties which are required for the view instance, at the time we select the Remote Cluster option for a view instance. Although, ensure that the Remote Cluster includes all services which are must for the view we are configuring.
Further, we must select Custom and then manually configure the view to work with the cluster, if our cluster is remote from and not being managed by the Ambari Server running the view.
Do you know about Ambari Web UI
Now, to determine which options are available for view configuration, refer below points:
- If our cluster is remote from the standalone Ambari Server running the view as well as managed by Ambari, then we must go for Remote Cluster
- We can go for Local Cluster if our cluster is managed by a local Ambari Server which is also running the view.
- If our cluster is not managed by Ambari and also it is remote from the standalone Ambari Server running the view, then we need to go for Custom.
3. Creating Ambari View Instances
In order to create a View instance, we need to follow these steps:
Steps for creating Ambari View Instances
- At first, browse to a View on the Ambari Admin page and also expand it.
- Then click on create Instance.
- Now refer to the following information, to create Views, this will show which items are required and why:
Let’s discuss Ambari Troubleshooting
a. Item – View version
- Required? – yes
- Description – It is an exact version to instantiate
b. Item – Instance name
- Required? – yes
- Description – Make sure, name unique to the selected View
c. Item – Display label
- Required? – Yes
- Description – It shows the readable display name of the View instance in the Ambari Web.
d. Item – Display
- Required? – Yes
- Description – It displays the readable description of the View instance in Ambari Web
Have a look at Ambari Architecture
e. Item – Visible
- Required? – No
- Description – Basically, it shows whether the View is visible or not to the end-user in Ambari Web. Make sure to use this property to temporarily hide a view from users.
f. Item – Settings
- Required? – Maybe
- Description – On the basis of View, a group of settings which we can customize. We prompt to offer the required information if we require a setting.
g. Item – Cluster configuration
- Required? – May Be
- Description – We can choose a local or remote cluster, or manually configure a custom View on the basis of View.
Be ensure about above items/information before creating views.
Further, the choice of Local Cluster will be available, if Ambari has a Cluster configured which will work with the View instance. Else, the choice of Remote Cluster will also be available, if we have registered one or more Remote Clusters. Moreover, we will have to enter the Custom configuration manually, if neither Local or Remote clusters are available.
Let’s take a tour of top Ambari Features
So, this was all in Ambari Views Tutorial. Hope you like our explanation.
4. Conclusion: Ambari Views
Hence, we have seen the concept of Apache Ambari Views along with Configuring and Creating View Instances. Still, if you have any query regarding Ambari Views, ask in the comment tab.
See also –
Ambari Interview Questions