Hortonworks Data Platform Command Line Installation (November 30, 2016)
Total Page:16
File Type:pdf, Size:1020Kb
Hortonworks Data Platform Command Line Installation (November 30, 2016) docs.cloudera.com Hortonworks Data Platform November 30, 2016 Hortonworks Data Platform: Command Line Installation Copyright © 2012-2016 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 Software Foundation projects that focus on the storage and processing of Big Data, along with operations, security, and governance for the resulting system. This includes Apache Hadoop -- which includes MapReduce, Hadoop Distributed File System (HDFS), and Yet Another Resource Negotiator (YARN) -- along with Ambari, Falcon, Flume, HBase, Hive, Kafka, Knox, Oozie, Phoenix, Pig, Ranger, Slider, Spark, Sqoop, Storm, Tez, and ZooKeeper. 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 November 30, 2016 Table of Contents 1. Preparing to Manually Install HDP ............................................................................... 1 1.1. Meeting Minimum System Requirements ........................................................... 1 1.1.1. Hardware Recommendations .................................................................. 1 1.1.2. Operating System Requirements ............................................................. 1 1.1.3. Software Requirements .......................................................................... 1 1.1.4. JDK Requirements .................................................................................. 2 1.1.5. Metastore Database Requirements ......................................................... 5 1.2. Virtualization and Cloud Platforms .................................................................. 15 1.3. Configuring Remote Repositories .................................................................... 15 1.4. Deciding on a Deployment Type ..................................................................... 16 1.5. Collect Information ......................................................................................... 16 1.6. Prepare the Environment ................................................................................ 16 1.6.1. Enable NTP on Your Cluster ................................................................. 16 1.6.2. Disable SELinux ..................................................................................... 18 1.6.3. Disable IPTables .................................................................................... 18 1.6.4. Install Berkeley Database for Falcon ..................................................... 19 1.7. Download Companion Files ............................................................................. 19 1.8. Define Environment Parameters ...................................................................... 20 1.9. Creating System Users and Groups .................................................................. 26 1.10. Determining HDP Memory Configuration Settings ......................................... 27 1.10.1. Running the YARN Utility Script .......................................................... 27 1.10.2. Calculating YARN and MapReduce Memory Requirements .................. 28 1.11. Configuring NameNode Heap Size ................................................................ 31 1.12. Allocating Adequate Log Space for HDP ........................................................ 32 1.13. Downloading the HDP Maven Artifacts ......................................................... 32 2. Installing Apache ZooKeeper ..................................................................................... 34 2.1. Install the ZooKeeper Package ........................................................................ 34 2.2. Securing ZooKeeper with Kerberos (optional) ................................................. 34 2.3. Securing ZooKeeper Access ............................................................................. 35 2.3.1. ZooKeeper Configuration ..................................................................... 35 2.3.2. YARN Configuration ............................................................................. 36 2.3.3. HDFS Configuration .............................................................................. 37 2.4. Set Directories and Permissions ....................................................................... 37 2.5. Set Up the Configuration Files ......................................................................... 38 2.6. Start ZooKeeper .............................................................................................. 39 3. Installing HDFS, YARN, and MapReduce ..................................................................... 40 3.1. Set Default File and Directory Permissions ....................................................... 40 3.2. Install the Hadoop Packages ........................................................................... 40 3.3. Install Compression Libraries ........................................................................... 41 3.3.1. Install Snappy ....................................................................................... 41 3.3.2. Install LZO ............................................................................................ 41 3.4. Create Directories ............................................................................................ 41 3.4.1. Create the NameNode Directories ........................................................ 42 3.4.2. Create the SecondaryNameNode Directories ......................................... 42 3.4.3. Create DataNode and YARN NodeManager Local Directories ................ 42 3.4.4. Create the Log and PID Directories ....................................................... 43 3.4.5. Symlink Directories with hdp-select ....................................................... 45 4. Setting Up the Hadoop Configuration ........................................................................ 47 iii Hortonworks Data Platform November 30, 2016 5. Validating the Core Hadoop Installation .................................................................... 53 5.1. Format and Start HDFS ................................................................................... 53 5.2. Smoke Test HDFS ............................................................................................ 53 5.3. Configure YARN and MapReduce .................................................................... 54 5.4. Start YARN ..................................................................................................... 56 5.5. Start MapReduce JobHistory Server ................................................................. 56 5.6. Smoke Test MapReduce .................................................................................. 57 6. Installing Apache HBase ............................................................................................. 58 6.1. Install the HBase Package ................................................................................ 58 6.2. Set Directories and Permissions ....................................................................... 59 6.3. Set Up the Configuration Files ......................................................................... 59 6.4. Validate the Installation .................................................................................. 62 6.5. Starting the HBase Thrift and REST Servers ...................................................... 63 7. Installing Apache Phoenix .......................................................................................... 65 7.1. Installing the Phoenix Package ........................................................................ 65 7.2. Configuring HBase for Phoenix ........................................................................ 65 7.3. Configuring Phoenix to Run in a Secure Cluster ............................................... 66 7.4. Validating the Phoenix Installation .................................................................. 67 7.5. Troubleshooting Phoenix ................................................................................. 69 8. Installing and Configuring Apache Tez ......................................................................