
Hortonworks Data Platform Data Access (May 17, 2018) docs.cloudera.com Hortonworks Data Platform May 17, 2018 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 May 17, 2018 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. SQL Compliance and ACID-Based Transactions ...................................... 10 2.2.5. Streaming Data Ingestion ..................................................................... 25 2.2.6. Query Vectorization ............................................................................. 25 2.2.7. Beeline versus Hive CLI ......................................................................... 26 2.2.8. Hive JDBC and ODBC Drivers ................................................................ 29 2.3. Moving Data into Apache Hive ....................................................................... 32 2.3.1. Using an External Table ........................................................................ 33 2.3.2. Using Sqoop ......................................................................................... 35 2.3.3. Incrementally Updating a Table ............................................................ 39 2.4. Queries on Data Stored in Remote Clusters ..................................................... 43 2.4.1. Query Capability on Remote Clusters .................................................... 44 2.5. Configuring HiveServer2 .................................................................................. 45 2.5.1. Configuring HiveServer2 for Transactions (ACID Support) ...................... 46 2.5.2. Configuring HiveServer2 for LDAP and for LDAP over SSL ...................... 47 2.6. Securing Apache Hive ...................................................................................... 51 2.6.1. Authorization Using Apache Ranger Policies ......................................... 53 2.6.2. SQL Standard-Based Authorization ....................................................... 54 2.6.3. Required Privileges for Hive Operations ................................................ 56 2.6.4. Storage-Based Authorization ................................................................ 58 2.6.5. Configuring Storage-Based Authorization ............................................. 59 2.6.6. Permissions for Apache Hive Operations ............................................... 60 2.6.7. Row-Level Filtering and Column Masking .............................................. 61 2.7. Troubleshooting .............................................................................................. 61 2.7.1. JIRAs .................................................................................................... 64 3. Enabling Efficient Execution with Apache Pig and Apache Tez .................................... 65 4. Accessing Apache Hive with HCatalog and WebHCat ................................................. 67 4.1. HCatalog ......................................................................................................... 67 4.1.1. HCatalog Community Information ........................................................ 67 4.2. WebHCat ........................................................................................................ 68 4.2.1. WebHCat Community Information ....................................................... 68 4.2.2. Security for WebHCat ........................................................................... 69 5. Persistent Read/Write Data Access with Apache HBase .............................................. 70 5.1. Content Roadmap ........................................................................................... 70 5.2. Deploying Apache HBase ................................................................................ 72 5.2.1. Installation and Setup .......................................................................... 73 5.2.2. Cluster Capacity and Region Sizing ....................................................... 74 iii Hortonworks Data Platform May 17, 2018 5.2.3. Enabling Multitenancy with Namepaces ............................................... 78 5.2.4. Security Features Available in Technical Preview .................................... 80 5.3. Managing Apache HBase Clusters ................................................................... 80 5.3.1. Monitoring Apache HBase Clusters ....................................................... 80 5.3.2. Optimizing Apache HBase I/O .............................................................. 80 5.3.3. Importing Data into HBase with Bulk Load ........................................... 89 5.3.4. Using Snapshots ................................................................................... 90 5.4. Backing up and Restoring Apache HBase Datasets ........................................... 92 5.4.1. Planning a Backup-and-Restore Strategy for Your Environment ............. 92 5.4.2. Best Practices for Backup-and-Restore ................................................... 94 5.4.3. Running the Backup-and-Restore Utility ................................................ 95 5.5. Medium Object (MOB) Storage Support in Apache HBase .............................. 103 5.5.1. Enabling MOB Storage Support .......................................................... 103 5.5.2. Testing the MOB Storage Support Configuration ................................ 104 5.5.3. Tuning MOB Storage Cache Properties ............................................... 104 5.6. HBase Quota Management ........................................................................... 105 5.6.1. Setting Up Quotas .............................................................................. 106 5.6.2. Throttle Quotas .................................................................................. 107 5.6.3. Space Quotas ..................................................................................... 108 5.6.4. Quota Enforcement ............................................................................ 109 5.6.5. Quota Violation Policies ...................................................................... 109 5.6.6. Impact of Quota Violation Policy ........................................................ 110 5.6.7. Number-of-Tables Quotas ................................................................... 112 5.6.8. Number-of-Regions Quotas ................................................................. 113 5.7. HBase Best Practices ...................................................................................... 113 6. Orchestrating SQL and APIs with Apache Phoenix .................................................... 114 6.1.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages142 Page
-
File Size-