Hortonworks Data Platform Data Access (August 31, 2017) docs.cloudera.com Hortonworks Data Platform August 31, 2017 Hortonworks Data Platform: Data Access Copyright © 2012-2017 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 YARN, 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 August 31, 2017 Table of Contents 1. What's New in Data Access for HDP 2.6 ....................................................................... 1 1.1. What's New in Apache Hive .............................................................................. 1 1.2. What's New in Apache Tez ............................................................................... 2 1.3. What's New in Apache HBase ........................................................................... 2 1.4. What's New in Apache Phoenix ......................................................................... 2 1.5. Druid ................................................................................................................ 3 2. Data Warehousing with Apache Hive ........................................................................... 4 2.1. Content Roadmap ............................................................................................. 4 2.2. Features Overview ............................................................................................ 6 2.2.1. Temporary Tables ................................................................................... 6 2.2.2. Optimized Row Columnar (ORC) Format ................................................ 7 2.2.3. SQL Optimization ................................................................................... 7 2.2.4. Transactions in Hive ............................................................................... 9 2.2.5. SQL Compliance ................................................................................... 19 2.2.6. Streaming Data Ingestion ..................................................................... 24 2.2.7. Query Vectorization ............................................................................. 24 2.2.8. Beeline versus Hive CLI ......................................................................... 26 2.2.9. Hive JDBC and ODBC Drivers ................................................................ 28 2.3. Moving Data into Apache Hive ....................................................................... 31 2.3.1. Using an External Table ........................................................................ 32 2.3.2. Using Sqoop ......................................................................................... 34 2.3.3. Incrementally Updating a Table ............................................................ 37 2.4. Configuring HiveServer2 .................................................................................. 41 2.4.1. Configuring HiveServer2 for Transactions (ACID Support) ...................... 42 2.4.2. Configuring HiveServer2 for LDAP and for LDAP over SSL ...................... 43 2.5. Securing Apache Hive ...................................................................................... 47 2.5.1. Authorization Using Apache Ranger Policies ......................................... 49 2.5.2. SQL Standard-Based Authorization ....................................................... 50 2.5.3. Required Privileges for Hive Operations ................................................ 52 2.5.4. Storage-Based Authorization ................................................................ 54 2.5.5. Configuring Storage-Based Authorization ............................................. 55 2.5.6. Permissions for Apache Hive Operations ............................................... 56 2.5.7. Row-Level Filtering and Column Masking .............................................. 57 2.6. Troubleshooting .............................................................................................. 57 2.6.1. JIRAs .................................................................................................... 60 3. Enabling Efficient Execution with Apache Pig and Apache Tez .................................... 61 4. Managing Metadata Services with Apache HCatalog .................................................. 63 4.1. HCatalog Community Information ................................................................... 63 4.2. WebHCat Community Information .................................................................. 64 4.3. Security for WebHCat ...................................................................................... 65 5. Persistent Read/Write Data Access with Apache HBase .............................................. 66 5.1. Content Roadmap ........................................................................................... 66 5.2. Deploying Apache HBase ................................................................................ 68 5.2.1. Installation and Setup .......................................................................... 69 5.2.2. Cluster Capacity and Region Sizing ....................................................... 69 5.2.3. Enabling Multitenancy with Namepaces ............................................... 74 5.2.4. Security Features Available in Technical Preview .................................... 75 5.3. Managing Apache HBase Clusters ................................................................... 76 iii Hortonworks Data Platform August 31, 2017 5.3.1. Monitoring Apache HBase Clusters ....................................................... 76 5.3.2. Optimizing Apache HBase I/O .............................................................. 76 5.3.3. Importing Data into HBase with Bulk Load ........................................... 84 5.3.4. Using Snapshots ................................................................................... 85 5.4. Backing up and Restoring Apache HBase Datasets ........................................... 87 5.4.1. Planning a Backup-and-Restore Strategy for Your Environment ............. 88 5.4.2. Best Practices for Backup-and-Restore ................................................... 89 5.4.3. Running the Backup-and-Restore Utility ................................................ 90 5.5. Medium Object (MOB) Storage Support in Apache HBase ............................... 98 5.5.1. Enabling MOB Storage Support ............................................................ 98 5.5.2. Testing the MOB Storage Support Configuration .................................. 99 5.5.3. Tuning MOB Storage Cache Properties ................................................. 99 5.6. HBase Quota Management ........................................................................... 100 5.6.1. Setting Up Quotas .............................................................................. 101 5.6.2. Throttle Quotas .................................................................................. 102 5.6.3. Space Quotas ..................................................................................... 103 5.6.4. Quota Enforcement ............................................................................ 104 5.6.5. Quota Violation Policies ...................................................................... 105 5.6.6. Impact of Quota Violation Policy ........................................................ 106 5.6.7. Number-of-Tables Quotas ................................................................... 107 5.6.8. Number-of-Regions Quotas ................................................................. 108 6. Orchestrating SQL and APIs with Apache Phoenix .................................................... 109 6.1. Enabling Phoenix and Interdependent Components ...................................... 109 6.2. Thin Client Connectivity with Phoenix Query Server ....................................... 109 6.2.1. Securing Authentication on the Phoenix Query Server ......................... 110 6.3. Selecting and Obtaining a Client Driver ......................................................... 110 6.4. Creating
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages132 Page
-
File Size-