Apache Ambari Operations (May 17, 2018)
Total Page:16
File Type:pdf, Size:1020Kb
Hortonworks Data Platform Apache Ambari Operations (May 17, 2018) docs.cloudera.com Hortonworks Data Platform May 17, 2018 Hortonworks Data Platform: Apache Ambari Operations Copyright © 2012-2018 Hortonworks, Inc. Some rights reserved. The Hortonworks Data Platform, powered by Apache Hadoop, is a massively scalable and 100% open source platform for storing, processing and analyzing large volumes of data. It is designed to deal with data from many sources and formats in a very quick, easy and cost-effective manner. The Hortonworks Data Platform consists of the essential set of Apache Hadoop projects including MapReduce, Hadoop Distributed File System (HDFS), HCatalog, Pig, Hive, HBase, ZooKeeper and Ambari. Hortonworks is the major contributor of code and patches to many of these projects. These projects have been integrated and tested as part of the Hortonworks Data Platform release process and installation and configuration tools have also been included. Unlike other providers of platforms built using Apache Hadoop, Hortonworks contributes 100% of our code back to the Apache Software Foundation. The Hortonworks Data Platform is Apache-licensed and completely open source. We sell only expert technical support, training and partner-enablement services. All of our technology is, and will remain free and open source. Please visit the Hortonworks Data Platform page for more information on Hortonworks technology. For more information on Hortonworks services, please visit either the Support or Training page. Feel free to Contact Us directly to discuss your specific needs. Except where otherwise noted, this document is licensed under Creative Commons Attribution ShareAlike 4.0 License. http://creativecommons.org/licenses/by-sa/4.0/legalcode ii Hortonworks Data Platform May 17, 2018 Table of Contents 1. Ambari Operations: Overview ...................................................................................... 1 1.1. Ambari Architecture .......................................................................................... 1 1.2. Accessing Ambari Web ...................................................................................... 2 2. Understanding the Cluster Dashboard ......................................................................... 5 2.1. Viewing the Cluster Dashboard ......................................................................... 5 2.1.1. Scanning Operating Status ..................................................................... 6 2.1.2. Viewing Details from a Metrics Widget ................................................... 7 2.1.3. Linking to Service UIs ............................................................................. 7 2.1.4. Viewing Cluster-Wide Metrics ................................................................. 8 2.2. Modifying the Cluster Dashboard ...................................................................... 9 2.2.1. Replace a Removed Widget to the Dashboard ...................................... 10 2.2.2. Reset the Dashboard ............................................................................ 10 2.2.3. Customizing Metrics Display ................................................................. 11 2.3. Viewing Cluster Heatmaps .............................................................................. 11 3. Managing Hosts ......................................................................................................... 13 3.1. Understanding Host Status .............................................................................. 13 3.2. Searching the Hosts Page ................................................................................ 14 3.3. Performing Host-Level Actions ......................................................................... 17 3.4. Managing Components on a Host ................................................................... 18 3.5. Decommissioning a Master or Slave ................................................................. 19 3.5.1. Decommission a Component ................................................................ 20 3.6. Delete a Component ....................................................................................... 20 3.7. Deleting a Host from a Cluster ........................................................................ 21 3.8. Setting Maintenance Mode ............................................................................. 21 3.8.1. Set Maintenance Mode for a Service .................................................... 22 3.8.2. Set Maintenance Mode for a Host ........................................................ 22 3.8.3. When to Set Maintenance Mode .......................................................... 23 3.9. Add Hosts to a Cluster .................................................................................... 24 3.10. Establishing Rack Awareness ......................................................................... 25 3.10.1. Set the Rack ID Using Ambari ............................................................. 26 3.10.2. Set the Rack ID Using a Custom Topology Script ................................. 27 4. Managing Services ..................................................................................................... 28 4.1. Starting and Stopping All Services ................................................................... 29 4.2. Displaying Service Operating Summary ............................................................ 29 4.2.1. Alerts and Health Checks ...................................................................... 30 4.2.2. Modifying the Service Dashboard ......................................................... 30 4.3. Adding a Service ............................................................................................. 32 4.4. Performing Service Actions .............................................................................. 36 4.5. Rolling Restarts ............................................................................................... 36 4.5.1. Setting Rolling Restart Parameters ........................................................ 37 4.5.2. Aborting a Rolling Restart .................................................................... 38 4.6. Monitoring Background Operations ................................................................ 38 4.7. Removing A Service ......................................................................................... 40 4.8. Operations Audit ............................................................................................ 40 4.9. Using Quick Links ............................................................................................ 40 4.10. Refreshing YARN Capacity Scheduler ............................................................. 41 4.11. Managing HDFS ............................................................................................ 41 4.11.1. Rebalancing HDFS ............................................................................... 42 iii Hortonworks Data Platform May 17, 2018 4.11.2. Tuning Garbage Collection ................................................................. 42 4.11.3. Customizing the HDFS Home Directory ............................................... 43 4.12. Managing Atlas in a Storm Environment ....................................................... 43 4.13. Enabling the Oozie UI ................................................................................... 44 5. Managing Service High Availability ............................................................................. 46 5.1. NameNode High Availability ............................................................................ 46 5.1.1. Configuring NameNode High Availability .............................................. 46 5.1.2. Rolling Back NameNode HA ................................................................. 51 5.1.3. Managing Journal Nodes ...................................................................... 61 5.2. ResourceManager High Availability ................................................................. 66 5.2.1. Configure ResourceManager High Availability ....................................... 66 5.2.2. Disable ResourceManager High Availability ........................................... 67 5.3. HBase High Availability .................................................................................... 69 5.4. Hive High Availability ...................................................................................... 74 5.4.1. Adding a Hive Metastore Component .................................................. 74 5.4.2. Adding a HiveServer2 Component ........................................................ 74 5.4.3. Adding a WebHCat Server .................................................................... 75 5.5. Storm High Availability .................................................................................... 75 5.5.1. Adding a Nimbus Component .............................................................. 75 5.6. Oozie High Availability .................................................................................... 76 5.6.1. Adding an Oozie Server Component ..................................................... 76 5.7. Apache Atlas High Availability ......................................................................... 77 5.8. Enabling Ranger Admin High Availability ......................................................... 79 6. Managing Configurations ..........................................................................................