Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6C9E3200C4E for ; Fri, 7 Apr 2017 00:09:45 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6B263160B9F; Thu, 6 Apr 2017 22:09:45 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B1709160B91 for ; Fri, 7 Apr 2017 00:09:44 +0200 (CEST) Received: (qmail 91253 invoked by uid 500); 6 Apr 2017 22:09:43 -0000 Mailing-List: contact dev-help@pig.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pig.apache.org Delivered-To: mailing list dev@pig.apache.org Received: (qmail 91242 invoked by uid 500); 6 Apr 2017 22:09:43 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 91239 invoked by uid 99); 6 Apr 2017 22:09:43 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Apr 2017 22:09:43 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 54DD11A06AD for ; Thu, 6 Apr 2017 22:09:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id YuwIfr9TgBLu for ; Thu, 6 Apr 2017 22:09:42 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 4F9885F3BF for ; Thu, 6 Apr 2017 22:09:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D19E4E06BB for ; Thu, 6 Apr 2017 22:09:41 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 878A724066 for ; Thu, 6 Apr 2017 22:09:41 +0000 (UTC) Date: Thu, 6 Apr 2017 22:09:41 +0000 (UTC) From: "Daniel Dai (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (PIG-5210) Option to print MR/Tez plan before launching MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 06 Apr 2017 22:09:45 -0000 [ https://issues.apache.org/jira/browse/PIG-5210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Dai updated PIG-5210: ---------------------------- Description: For pig script, users need to use {{pig -e "explain -script test.pig"}} to print out MR/Tez Plan. But for Python script, it is a hard thing for PIG to explain the plan automatically. This option can help to print out MR/Tez plan automatically before implement of MapReduce. was: h5. Adding an option to print out MR/Tez plan before launching For pig script, users need to use {{pig -e "explain -script test.pig"}} to print out MR/Tez Plan. But for Python script, it is a hard thing for PIG to explain the plan automatically. This option can help to print out MR/Tez plan automatically before implement of MapReduce. Steps: - Get clone of 0.17.0 version PIG by git pull - Set up Eclipse - Import Pig src to Eclipse, and set pig.print.exec.plan "true" in file _JobControlCompiler.java_,_TezJobCompiler.java_ before Mapreduce starts - Check for compiling {{ant}} - After building successful, Start remote debugger in Eclipse {{export PIG_OPTS="- agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=8000"}} Or start to run pig only in terminal {{unset PIG_OPTS}} - Test cases: For MR engine {{-x local test.pig}}; For Tez engine {{-x tez_local test.pig}} - Get the plan and test results as expected > Option to print MR/Tez plan before launching > -------------------------------------------- > > Key: PIG-5210 > URL: https://issues.apache.org/jira/browse/PIG-5210 > Project: Pig > Issue Type: Improvement > Affects Versions: 0.17.0 > Reporter: Lili Yu > Assignee: Lili Yu > Fix For: 0.17.0 > > Attachments: PrintPlan.patch, screenshot-change.png, screenshot MR plan.png, screenshot Tez Plan.png, test.pig > > > For pig script, users need to use {{pig -e "explain -script test.pig"}} to print out MR/Tez Plan. But for Python script, it is a hard thing for PIG to explain the plan automatically. This option can help to print out MR/Tez plan automatically before implement of MapReduce. -- This message was sent by Atlassian JIRA (v6.3.15#6346)