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 B90E9200D1E for ; Wed, 18 Oct 2017 19:47:32 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B79FE160BEA; Wed, 18 Oct 2017 17:47:32 +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 0A0AA1609DE for ; Wed, 18 Oct 2017 19:47:31 +0200 (CEST) Received: (qmail 71278 invoked by uid 500); 18 Oct 2017 17:47:31 -0000 Mailing-List: contact reviews-help@impala.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@impala.incubator.apache.org Received: (qmail 71262 invoked by uid 99); 18 Oct 2017 17:47:30 -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, 18 Oct 2017 17:47:30 +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 33A78180710 for ; Wed, 18 Oct 2017 17:47:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.362 X-Spam-Level: ** X-Spam-Status: No, score=2.362 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RDNS_DYNAMIC=0.363, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id PHNpcDn64JG3 for ; Wed, 18 Oct 2017 17:47:28 +0000 (UTC) Received: from ip-10-146-233-104.ec2.internal (ec2-75-101-130-251.compute-1.amazonaws.com [75.101.130.251]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 397A55FBE2 for ; Wed, 18 Oct 2017 17:47:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ip-10-146-233-104.ec2.internal (8.14.4/8.14.4) with ESMTP id v9IHlPwd032275; Wed, 18 Oct 2017 17:47:25 GMT Message-Id: <201710181747.v9IHlPwd032275@ip-10-146-233-104.ec2.internal> X-Gerrit-PatchSet: 1 Date: Wed, 18 Oct 2017 17:47:25 +0000 From: "Philip Zeyliger (Code Review)" To: Laszlo Gaal , impala-cr@cloudera.com, reviews@impala.incubator.apache.org CC: Alex Behm , Dan Hecht , Sailesh Mukil , Lars Volker , Michael Brown , David Knupp , Joe McDonnell X-Gerrit-MessageType: comment Subject: =?UTF-8?Q?=5BImpala-ASF-CR=5D_IMPALA-6067=3A_Enable_s3_access_via_IAM_roles_for_EC2_VMs=0A?= X-Gerrit-Change-Id: I14cd9d4453a91baad3c379aa7e4944993fca95ae X-Gerrit-Change-Number: 8294 X-Gerrit-ChangeURL: X-Gerrit-Commit: 26a5ebab7226cbba12a6cf5c58f5ad1dd82aa5b0 In-Reply-To: References: X-Gerrit-Comment-Date: Wed, 18 Oct 2017 17:47:25 +0000 Reply-To: philip@cloudera.com, impala-cr@cloudera.com, sailesh@cloudera.com, dknupp@cloudera.com, lv@cloudera.com, marcelk@gmail.com, dhecht@cloudera.com, joemcdonnell@cloudera.com, laszlo.gaal@cloudera.com, alex.behm@cloudera.com, reviews@impala.incubator.apache.org, mikeb@cloudera.com MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/2.14.2 Content-Type: multipart/alternative; boundary="LJCd2fqjG/c="; charset=UTF-8 archived-at: Wed, 18 Oct 2017 17:47:32 -0000 --LJCd2fqjG/c= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Philip Zeyliger has posted comments on this change=2E ( http://gerrit=2Eclo= udera=2Eorg:8080/8294 ) Change subject: IMPALA-6067: Enable s3 access via = IAM roles for EC2 VMs =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E Patch Set 1: (1 comment) http://gerrit=2Ecloudera=2Eorg:8080/= #/c/8294/1/bin/impala-config=2Esh File bin/impala-config=2Esh: http://gerr= it=2Ecloudera=2Eorg:8080/#/c/8294/1/bin/impala-config=2Esh@256 PS1, Line 25= 6: if [[ -z ${AWS_ACCESS_KEY_ID-} ]]; then > We may want to include a check= here that "set -x" has not been enabled? (Bash hackery) If you want, you = can use a subshell: $(set -x; (set +x; [ $USER =3D=3D philip ])) && echo y= es || echo no + set +x yes 10:46:02 mystery ~ $(set -x; (set +x; [ $USER = =3D=3D phili ])) && echo yes || echo no + set +x no Return values survive= , and you can just do if (set +x; [[ -z ${AWS_SECRET_ACCESS_KEY_ID-} ]]); = then =2E=2E=2E fi I tested something similar above=2E -- To view, vi= sit http://gerrit=2Ecloudera=2Eorg:8080/8294 To unsubscribe, visit http://g= errit=2Ecloudera=2Eorg:8080/settings Gerrit-Project: Impala-ASF Gerrit-Bra= nch: master Gerrit-MessageType: comment Gerrit-Change-Id: I14cd9d4453a91baa= d3c379aa7e4944993fca95ae Gerrit-Change-Number: 8294 Gerrit-PatchSet: 1 Gerr= it-Owner: Laszlo Gaal Gerrit-Reviewer: Alex = Behm Gerrit-Reviewer: Dan Hecht Gerrit-Reviewer: David Knupp Gerrit-Revie= wer: Joe McDonnell Gerrit-Reviewer: Lars Volk= er Gerrit-Reviewer: Laszlo Gaal Gerrit-Reviewer: Michael Brown Gerrit-Review= er: Philip Zeyliger Gerrit-Reviewer: Sailesh Mukil = Gerrit-Comment-Date: Wed, 18 Oct 2017 17:47:25 +00= 00 Gerrit-HasComments: Yes --LJCd2fqjG/c=--