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 A0AC9200B52 for ; Mon, 25 Jul 2016 21:39:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9F41E160A7D; Mon, 25 Jul 2016 19:39:25 +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 E431D160A67 for ; Mon, 25 Jul 2016 21:39:24 +0200 (CEST) Received: (qmail 24180 invoked by uid 500); 25 Jul 2016 19:39:24 -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 24169 invoked by uid 99); 25 Jul 2016 19:39:24 -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; Mon, 25 Jul 2016 19:39:24 +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 8C0A41A045B for ; Mon, 25 Jul 2016 19:39:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx2-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 tQjk4K6TDhJu for ; Mon, 25 Jul 2016 19:39:21 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with SMTP id 6269C5FB83 for ; Mon, 25 Jul 2016 19:39:21 +0000 (UTC) Received: (qmail 23903 invoked by uid 99); 25 Jul 2016 19:39:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2016 19:39:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8B4652C0D63 for ; Mon, 25 Jul 2016 19:39:20 +0000 (UTC) Date: Mon, 25 Jul 2016 19:39:20 +0000 (UTC) From: "Loknath Priyatham Teja Singamsetty (JIRA)" To: dev@phoenix.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (PHOENIX-3113) Automatic build of async index will happen even if mapreduce.framework.name is not set in any configuration MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 25 Jul 2016 19:39:25 -0000 [ https://issues.apache.org/jira/browse/PHOENIX-3113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15392546#comment-15392546 ] Loknath Priyatham Teja Singamsetty edited comment on PHOENIX-3113 at 7/25/16 7:39 PM: --------------------------------------------------------------------------------------- [~tdsilva] Attached patch. Please run the AsyncIndexIT.java unit test before pushing the changes in. I couldn't test the working as the https://repository.apache.org/ is down resulting in mvn build failures. was (Author: singamteja): [~tdsilva] Attached patch. > Automatic build of async index will happen even if mapreduce.framework.name is not set in any configuration > ----------------------------------------------------------------------------------------------------------- > > Key: PHOENIX-3113 > URL: https://issues.apache.org/jira/browse/PHOENIX-3113 > Project: Phoenix > Issue Type: Bug > Reporter: Ankit Singhal > Assignee: Loknath Priyatham Teja Singamsetty > Priority: Blocker > Fix For: 4.8.0 > > Attachments: phoenix-3113.patch > > > As per below code, we are starting automatic build of async index even if mapreduce.framework.name is not set in any of the configuration(because conf.get(QueryServices.MAPRED_FRAMEWORK_NAME) will always return LOCAL as a default value). > This may cause problem in the hbase cluster where mapreduce is not deployed or this configuration is not set or included in the classpath. > {code} > String hbaseClusterDistributedMode = conf.get(QueryServices.HBASE_CLUSTER_DISTRIBUTED_ATTRIB); > String mapredFrameworkName = conf.get(QueryServices.MAPRED_FRAMEWORK_NAME); > if ((hbaseClusterDistributedMode != null && !hbaseClusterDistributedMode.equals(HBASE_CLUSTER_DISTRIBUTED_CONFIG)) || > (mapredFrameworkName != null && !mapredFrameworkName.equals(MAPRED_FRAMEWORK_YARN_CONFIG))) > { > LOG.info("Enabling Async Index rebuilder"); > AsyncIndexRebuilderTask asyncIndexRebuilderTask = new AsyncIndexRebuilderTask(e.getEnvironment()); > // run async index rebuilder task every 10 secs to rebuild any newly created async indexes > executor.scheduleAtFixedRate(asyncIndexRebuilderTask, 10000, rebuildIndexTimeInterval, TimeUnit.MILLISECONDS); > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)