- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
CBO for Hive over hbase
- Labels:
-
Apache HBase
-
Apache Hive
Created ‎06-21-2016 09:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have Hive running over HBase table. Is it interesting in this case to analyze the table for the CBO? Or is it only interesting whe nyou have hive with orc file?
Thanks in advance,
Michel
Created ‎06-21-2016 10:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
CBO is mainly for optimization decisions which reduces the cost of query execution and is independent of storage formats like ORC. Below is some of decisions based on CBO:
- How to order Join
- What algorithm to use for a given Join
- Should the intermediate result be persisted or should it be recomputed on operator failure.
- The degree of parallelism at any operator (specifically number of reducers to use).
- Semi Join selection
For details, please refer to below link:
https://cwiki.apache.org/confluence/display/Hive/Cost-based+optimization+in+Hive
Thanks and Regards,
Sindhu
Created ‎06-21-2016 10:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Michel
Right now the Hive plan calculation does not reach out to get Hbases stats so currently no added benefit from the Hbase stats. This being said these are questions that are being worked on in different initiatives, so this will likely change in the future.
Created ‎06-21-2016 10:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
CBO is mainly for optimization decisions which reduces the cost of query execution and is independent of storage formats like ORC. Below is some of decisions based on CBO:
- How to order Join
- What algorithm to use for a given Join
- Should the intermediate result be persisted or should it be recomputed on operator failure.
- The degree of parallelism at any operator (specifically number of reducers to use).
- Semi Join selection
For details, please refer to below link:
https://cwiki.apache.org/confluence/display/Hive/Cost-based+optimization+in+Hive
Thanks and Regards,
Sindhu
Created ‎06-21-2016 10:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the info. Then what will be your best advice to improve performance of hive over hbase?
Created ‎06-21-2016 01:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hive using MR-over-hbase-snapshots would be a viable solution.
Perform a snapshot in hbase, then use hive to directly read from the underlying HFiles.
