[ https://issues.apache.org/jira/browse/HAWQ-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15194523#comment-15194523 ]
ASF GitHub Bot commented on HAWQ-499: ------------------------------------- Github user xinzweb commented on the pull request: https://github.com/apache/incubator-hawq/pull/419#issuecomment-196598092 @changleicn and @radarwave please test this PR on your side, and if all good, please push them in. Thanks. > 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 > > 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)