Created 06-21-2016 09:59 AM
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
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:
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
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
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:
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
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
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.