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 9AD50200B6C for ; Sun, 14 Aug 2016 04:47:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9951F160AB2; Sun, 14 Aug 2016 02:47: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 11E7C160AA6 for ; Sun, 14 Aug 2016 04:47:24 +0200 (CEST) Received: (qmail 90468 invoked by uid 500); 14 Aug 2016 02:47:24 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 90454 invoked by uid 99); 14 Aug 2016 02:47:24 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Aug 2016 02:47:24 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9527B2C02A3 for ; Sun, 14 Aug 2016 02:47:22 +0000 (UTC) Date: Sun, 14 Aug 2016 02:47:22 +0000 (UTC) From: "Christopher Tubbs (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-4403) Multiple hostname aliases breaks stop-here.sh MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 14 Aug 2016 02:47:25 -0000 [ https://issues.apache.org/jira/browse/ACCUMULO-4403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15420190#comment-15420190 ] Christopher Tubbs commented on ACCUMULO-4403: --------------------------------------------- Looks right to me. Also, shellcheck doesn't seem to have a problem with it either. I was thinking more like: {code} HOSTS_TO_CHECK=($(hostname -a 2> /dev/null | head -1) $(hostname -f)) ... for host in "${HOSTS_TO_CHECK[@]}"; do {code} But, it doesn't matter, either way. > Multiple hostname aliases breaks stop-here.sh > --------------------------------------------- > > Key: ACCUMULO-4403 > URL: https://issues.apache.org/jira/browse/ACCUMULO-4403 > Project: Accumulo > Issue Type: Bug > Components: scripts > Reporter: Josh Elser > Assignee: Josh Elser > Priority: Critical > Fix For: 1.8.0 > > > I have a node with /etc/hosts > {noformat} > 172.22.98.184 jelser-accumulo-180-4.openstacklocal jelser-accumulo-180-4 jelser-accumulo-180-4.openstacklocal. > {noformat} > hostname -a returns > {noformat} > [accumulo@jelser-accumulo-180-4 accumulo-1.8.0]$ hostname -a > jelser-accumulo-180-4 jelser-accumulo-180-4.openstacklocal. > {noformat} > This breaks the stop-here.sh script which expects only a single alias. -- This message was sent by Atlassian JIRA (v6.3.4#6332)