Pallav Kulshreshtha 268a87eb52 AMBARI-16866. View Config-Non remote user able to edit queue settings in remote capacity schedular view.(Gaurav Nagar via pallavkul) 9 years ago
..
src 268a87eb52 AMBARI-16866. View Config-Non remote user able to edit queue settings in remote capacity schedular view.(Gaurav Nagar via pallavkul) 9 years ago
pom.xml 270c23fb12 AMBARI-16706. ADLS as default FS is not supported for any views (Gaurav Nagar via pallavkul) 9 years ago
readme.md e28a9c073c AMBARI-11391. Files View Should support NameNode HA (Erik Bergenholtz via rlevas) 10 years ago

readme.md

Utils

Description

This module provides common utils for views

Requirements

  • Ambari 2.1.0 or later

HDFS Utility

HdfsApi class provides business delegate for HDFS client that provides proxyuser configuration. You can create the HdfsApi based on your ViewContext:

HdfsApi api = HdfsUtil.connectToHDFSApi(viewContext);

It will read instance properties and create HdfsApi configured to specific cluster. NameNodes HA is supported.

AmbariApi

AmbariApi provides methods to get Ambari configurations and cluster topology.

Custer association functionality:

AmbariApi api = new AmbariApi(viewContext);
Cluster cluster = api.getCluster();

It can work with local cluster or with remote cluster based on your instance properties of Ambari URL, username and password in the ViewContext. To determine if you have associated cluster, either local or remote:

boolean isAssociated = api.isClusterAssociated();

Also provides the API to get cluster topology:

List<String> nnHosts = api.getHostsWithComponent("NAMENODE");