Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3B907119E1 for ; Fri, 8 Aug 2014 08:29:15 +0000 (UTC) Received: (qmail 77583 invoked by uid 500); 8 Aug 2014 08:29:13 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 77507 invoked by uid 500); 8 Aug 2014 08:29:13 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 77496 invoked by uid 500); 8 Aug 2014 08:29:13 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 77493 invoked by uid 99); 8 Aug 2014 08:29:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Aug 2014 08:29:13 +0000 Date: Fri, 8 Aug 2014 08:29:13 +0000 (UTC) From: "James Spurin (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-7658) Hive search order for hive-site.xml when using --config option MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-7658?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] James Spurin updated HIVE-7658: ------------------------------- Environment:=20 Red Hat Enterprise Linux Server release 5.9 (Tikanga) Hive 0.13.0-mapr-1406 Subversion git://rhbuild/root/builds/opensource/node/ecosystem/dl/hive -r 4= ff8f8b4a8fc4862727108204399710ef7ee7abc Compiled by root on Tue Jul 1 14:18:09 PDT 2014 >From source with checksum 208afc25260342b51aefd2e0edf4c9d6 was: -bash-3.2$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.9 (Tikanga) Hive 0.13.0-mapr-1406 Subversion git://rhbuild/root/builds/opensource/node/ecosystem/dl/hive -r 4= ff8f8b4a8fc4862727108204399710ef7ee7abc Compiled by root on Tue Jul 1 14:18:09 PDT 2014 >From source with checksum 208afc25260342b51aefd2e0edf4c9d6 > Hive search order for hive-site.xml when using --config option > -------------------------------------------------------------- > > Key: HIVE-7658 > URL: https://issues.apache.org/jira/browse/HIVE-7658 > Project: Hive > Issue Type: Bug > Components: CLI > Affects Versions: 0.13.0 > Environment: Red Hat Enterprise Linux Server release 5.9 (Tikanga= ) > Hive 0.13.0-mapr-1406 > Subversion git://rhbuild/root/builds/opensource/node/ecosystem/dl/hive -r= 4ff8f8b4a8fc4862727108204399710ef7ee7abc > Compiled by root on Tue Jul 1 14:18:09 PDT 2014 > From source with checksum 208afc25260342b51aefd2e0edf4c9d6 > Reporter: James Spurin > Priority: Minor > > When using the hive cl, the tool appears to favour a hive-site.xml file i= n the current working directory even if the --config option is used with a = valid directory containing a hive-site.xml file. > I would have expected the directory specified with --config to take prece= dence in the CLASSPATH search order. > Here's an example - > /home/spurija/hive-site.xml =3D > > > hive.exec.local.scratchdir > /tmp/example1 > > > /tmp/hive/hive-site.xml =3D > > > hive.exec.local.scratchdir > /tmp/example2 > > > -bash-4.1$ diff /home/spurija/hive-site.xml /tmp/hive/hive-site.xml > 23c23 > < /tmp/example1 > --- > > /tmp/example2 > { check the value of scratchdir, should be example 1 } > -bash-4.1$ pwd > /home/spurija > -bash-4.1$ hive > Logging initialized using configuration in jar:file:/opt/mapr/hive/hive-0= .13/lib/hive-common-0.13.0-mapr-1405.jar!/hive-log4j.properties > hive> set hive.exec.local.scratchdir; > hive.exec.local.scratchdir=3D/tmp/example1 > { run with a specified config, check the value of scratchdir, should be e= xample2 =E2=80=A6 still reported as example1 } > -bash-4.1$ pwd > /home/spurija > -bash-4.1$ hive --config /tmp/hive > Logging initialized using configuration in jar:file:/opt/mapr/hive/hive-0= .13/lib/hive-common-0.13.0-mapr-1405.jar!/hive-log4j.properties > hive> set hive.exec.local.scratchdir; > hive.exec.local.scratchdir=3D/tmp/example1 > { remove the local config, check the value of scratchdir, should be examp= le2 =E2=80=A6 now correct } > -bash-4.1$ pwd > /home/spurija > -bash-4.1$ rm hive-site.xml > -bash-4.1$ hive --config /tmp/hive > Logging initialized using configuration in jar:file:/opt/mapr/hive/hive-0= .13/lib/hive-common-0.13.0-mapr-1405.jar!/hive-log4j.properties > hive> set hive.exec.local.scratchdir; > hive.exec.local.scratchdir=3D/tmp/example2 > Is this expected behavior or should it use the directory supplied with --= config as the preferred configuration? -- This message was sent by Atlassian JIRA (v6.2#6252)