[ https://issues.apache.org/jira/browse/HAWQ-499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Goden Yao resolved HAWQ-499. ---------------------------- Resolution: Fixed Fix Version/s: 2.0.0.0-incubating > IPv6 address not read properly on OSX version < 10.11 > ----------------------------------------------------- > > Key: HAWQ-499 > URL: https://issues.apache.org/jira/browse/HAWQ-499 > Project: Apache HAWQ > Issue Type: Bug > Reporter: Jacob Max Frank > Assignee: Lei Chang > Fix For: 2.0.0.0-incubating > > > The commit 91c50f70 for HAWQ-235 fixed IP lookup for IPv4, but appears to > have missed the corresponding case for IPv6. > On my laptop (currently running OSX 10.10.15), I hit the else case in this > block from *hawqinit.sh*: > {code} > get_master_ipv6_addresses() { > if [ "${distro_based_on}" = "Mac" ] && [ "${distro_version:0:5}" = > "10.11" ]; then > MASTER_IPV6_LOCAL_ADDRESS_ALL=(`${IFCONFIG} | ${GREP} inet6 | ${AWK} > '{print $2}' | cut -d'%' -f1`) > else > MASTER_IPV6_LOCAL_ADDRESS_ALL=(`ip -6 address show |${GREP} > inet6|${AWK} '{print $2}' |cut -d'/' -f1`) > fi > } > {code} > That resulted in this error, since the "ip" command isn't on my computer: > {code} > /usr/local/hawq/bin/lib/hawqinit.sh: line 196: ip: command not found > {code} > We verified that the positive case in the block above works fine on my > version of OSX. I can't say for sure how it will work on older OSX versions, > but IPv6 has been supported since OSX 10.1. > We're open to suggestions for the bug's most relevant "component"; "build" > was the closest but didn't really seem to fit. Perhaps we could add a > component for support/infrastructure scripts. -- This message was sent by Atlassian JIRA (v6.3.4#6332)