MapReduce code generated by Hive
2 answers
I believe that Hive does not actually generate Map / Reduce code in the sense that you might get from Java, because it is interpreted by the query planner in Hive.
If you want to get an idea of ββwhat operations are generating your Hive queries, you can prefix your queries with EXPLAIN
and you will see an abstract syntax tree, dependency graph, and plan for each stage. Read more about EXPLAIN
here .
If you really want to see some Map / Reduce jobs, you can try YSmart , which will translate your HiveQL statements into working Java Map / Reduce code. I haven't used it personally, but I know people who have and have talked about it.
+6
source to share