<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: network-scoped alias is supported [SOLVED] in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/network-scoped-alias-is-supported-SOLVED/m-p/177226#M139476</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/83518/s0545166.html" nodeid="83518"&gt;@De ba&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The issue is here:&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;docker-deploy-hdp265.sh:30:[: hdp: unexpected operator&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;The posix shell that you are using does not recognize '==' for string equality and hence the 'hostname' variable is not set. This is resulting in a null string being passed to the 'network-alias' option in docker run command and hence the issue.&lt;/P&gt;&lt;P&gt;How are you executing the script 'docker-deploy-hdp265.sh' ?&lt;/P&gt;&lt;P&gt;You can try the following options as a work around and that should set the 'hostname' variable to a proper value and then docker run would execute successfully.&lt;/P&gt;&lt;P&gt;1. Can you try replacing '==' with '=' in the following if condition code.&lt;/P&gt;&lt;P&gt;# start the docker container and proxy&lt;/P&gt;&lt;P&gt;
if [ "$flavor" = "hdf" ]; then &lt;/P&gt;&lt;P&gt;  hostname="sandbox-hdf.hortonworks.com"&lt;/P&gt;&lt;P&gt;
elif [ "$flavor" = "hdp" ]; then &lt;/P&gt;&lt;P&gt;  hostname="sandbox-hdp.hortonworks.com"&lt;/P&gt;&lt;P&gt;
fi&lt;/P&gt;&lt;P&gt;2. Try running the script as 'bash docker-deploy-hdp265.sh'&lt;/P&gt;&lt;P&gt;3. Though not recommended, manually set the variable 'hostname' as follows in the script instead of the if condition.&lt;/P&gt;&lt;P&gt;    hostname="sandbox-hdp.hortonworks.com"&lt;/P&gt;&lt;P&gt;Let me know how it goes.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;docker-deploy-hdp265.sh&lt;/P&gt;</description>
    <pubDate>Sun, 01 Jul 2018 12:12:53 GMT</pubDate>
    <dc:creator>vpaul</dc:creator>
    <dc:date>2018-07-01T12:12:53Z</dc:date>
  </channel>
</rss>

