在哪里可以看到从hadoop pig语句生成的mapreduce代码 [英] Where to see the mapreduce code generated from hadoop pig statements
问题描述
我们都知道hadoop pig语句被转换成java mapreduce代码 b $ b
事实并非如此。 Hadoop Pig语句不会翻译成Java MapReduce代码。
更好的思考方式是Pig代码在Pig MapReduce中运行的Pig解释器中解释。这样思考:Python和Perl不会生成C代码,它们通过执行指令的C程序(解释器)运行。基本上,Pig提供了一个执行查询计划的框架。猪代码被解释并且预构建的解释器MapReduce作业执行它。出于这个原因,这是不可能的。
如果你想了解更多的事情,可以使用 EXPLAIN
和 ILLUSTRATE
,以获得有关Pig构建用于执行代码的查询计划的一些信息。
We all know that the hadoop pig statements are converted into java mapreduce code. I want to know there is any way i can see the mapreduce code generated from pig statements ?
We all know that hadoop pig statements are converted into java mapreduce code
This is not the case. Hadoop Pig statements are not translated into Java MapReduce code.
A better way of thinking about it is Pig code is "interpreted" in an Pig interpreter that runs in Java MapReduce. Think about it this way: Python and Perl do not "generate" C code, they run through a C program (interpreter) that executes the instructions. Basically, Pig provides a framework for a query plan to be executed. The Pig code gets interpreted and a prebuilt interpreter MapReduce job executes it. For this reason, this is impossible to do.
If you want to understand more of what is going on, use EXPLAIN
and ILLUSTRATE
to get some insight on the query plan that Pig built to execute your code.
这篇关于在哪里可以看到从hadoop pig语句生成的mapreduce代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!