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 C5E46200C32 for ; Wed, 22 Feb 2017 07:52:52 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C4B53160B49; Wed, 22 Feb 2017 06:52:52 +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 1F48A160B67 for ; Wed, 22 Feb 2017 07:52:51 +0100 (CET) Received: (qmail 53694 invoked by uid 500); 22 Feb 2017 06:52:46 -0000 Mailing-List: contact dev-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list dev@phoenix.apache.org Received: (qmail 53683 invoked by uid 99); 22 Feb 2017 06:52:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Feb 2017 06:52:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id C318F186142 for ; Wed, 22 Feb 2017 06:52:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id hrSQObon4HeH for ; Wed, 22 Feb 2017 06:52:45 +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 CA4CB5FAD4 for ; Wed, 22 Feb 2017 06:52:44 +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 65312E00C9 for ; Wed, 22 Feb 2017 06:52:44 +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 22C4F2411B for ; Wed, 22 Feb 2017 06:52:44 +0000 (UTC) Date: Wed, 22 Feb 2017 06:52:44 +0000 (UTC) From: "Sergey Soldatov (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-3536) Remove creating unnecessary phoenix connections in MR Tasks of Hive MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 22 Feb 2017 06:52:52 -0000 [ https://issues.apache.org/jira/browse/PHOENIX-3536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15877603#comment-15877603 ] Sergey Soldatov commented on PHOENIX-3536: ------------------------------------------ [~Jeongdae Kim] I have some concerns about the way how it's implemented. You have modified the way how projected column expression is serialized and I have strong feeling that it may break the backward compatibility between server and older clients. We usually do such changes in major releases. [~jamestaylor] WDYT? > Remove creating unnecessary phoenix connections in MR Tasks of Hive > ------------------------------------------------------------------- > > Key: PHOENIX-3536 > URL: https://issues.apache.org/jira/browse/PHOENIX-3536 > Project: Phoenix > Issue Type: Improvement > Reporter: Jeongdae Kim > Assignee: Jeongdae Kim > Labels: HivePhoenix > Attachments: PHOENIX-3536.1.patch > > > PhoenixStorageHandler creates phoenix connections to make QueryPlan in getSplit phase(prepare MR) and getRecordReader phase(Map) while running MR Job. > in phoenix, it spends too many times to create the first phoenix connection(QueryServices) for specific URL. (checking and loading phoenix schema information) > i found it is possible to remove creating query plan again in Map phase(getRecordReader()) by serializing QueryPlan created from Input format ans passing this plan to record reader. > this approach improves scan performance by removing trying to unnecessary connection in map phase. -- This message was sent by Atlassian JIRA (v6.3.15#6346)