<?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: Change ip address of sandbox to static? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-ip-address-of-sandbox-to-static/m-p/172191#M45853</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2695/myoung.html" nodeid="2695"&gt;@Michael Young&lt;/A&gt; thank you for your time,  thats what i needed to know. I can work on that tutorial now&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2016 01:12:09 GMT</pubDate>
    <dc:creator>r_young</dc:creator>
    <dc:date>2016-11-11T01:12:09Z</dc:date>
    <item>
      <title>Change ip address of sandbox to static?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-ip-address-of-sandbox-to-static/m-p/172183#M45845</link>
      <description>&lt;P&gt;Hi, is it possible to change the ip address of the sandbox? I have two addresses 172.17.0.1 which i can change to static, but the actual sandbox address stays at 172.17.0.2, this is accessed using ssh into port 2222. can this be changed to static?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 19:06:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-ip-address-of-sandbox-to-static/m-p/172183#M45845</guid>
      <dc:creator>r_young</dc:creator>
      <dc:date>2016-11-10T19:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Change ip address of sandbox to static?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-ip-address-of-sandbox-to-static/m-p/172184#M45846</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/14005/ryoung.html" nodeid="14005"&gt;@Roger Young&lt;/A&gt;&lt;P&gt;Yes. its possible&lt;/P&gt;&lt;P&gt;Just change the Network settings from NAT to "Host-Only Adapter" as shown in screenshot.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/9296-network.png"&gt;network.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Once done login to the VM and set BOOTPROTO to static.&lt;/P&gt;&lt;P&gt;$ vi /etc/sysconfig/network-scripts/ifcfg-eth0&lt;/P&gt;&lt;P&gt;BOOTPROTO="dhcp"  ==&amp;gt; [set this to "static"]&lt;/P&gt;&lt;P&gt;and restart network service&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 19:11:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-ip-address-of-sandbox-to-static/m-p/172184#M45846</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2016-11-10T19:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Change ip address of sandbox to static?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-ip-address-of-sandbox-to-static/m-p/172185#M45847</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt;, thanks for the reply. i have since edited my question. i can change the docker container address to static but the actual sandbox address stays the same which causes problems with ports etc when trying to add nodes. When i ssh into th sandbox via port 2222 and try to edit the ifcfg-eth0 file, it gives errors. &lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 19:20:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-ip-address-of-sandbox-to-static/m-p/172185#M45847</guid>
      <dc:creator>r_young</dc:creator>
      <dc:date>2016-11-10T19:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Change ip address of sandbox to static?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-ip-address-of-sandbox-to-static/m-p/172186#M45848</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14005/ryoung.html" nodeid="14005"&gt;@Roger Young&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The HDP 2.5 sandboxes are now all based on Docker containers.  When you ssh into the sandbox via port 2222, you are connecting to the VirtualBox VM which is then forwarding your request to the Docker container.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 22:17:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-ip-address-of-sandbox-to-static/m-p/172186#M45848</guid>
      <dc:creator>myoung</dc:creator>
      <dc:date>2016-11-10T22:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Change ip address of sandbox to static?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-ip-address-of-sandbox-to-static/m-p/172187#M45849</link>
      <description>&lt;P&gt;Thanks, so if i use port 2222 all the time i should be fine? Previously i was doing all commands through port 22 and was getting errors . Is it still possible to connect nodes to the sandbox through the docker container.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 22:27:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-ip-address-of-sandbox-to-static/m-p/172187#M45849</guid>
      <dc:creator>r_young</dc:creator>
      <dc:date>2016-11-10T22:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change ip address of sandbox to static?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-ip-address-of-sandbox-to-static/m-p/172188#M45850</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14005/ryoung.html" nodeid="14005"&gt;@Roger Young&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Yes the Docker container is accessible via the IP address where VirtualBox is running.  My laptop is currently 192.168.1.162.  From any computer on the network I can access Ambari on my laptop via &lt;A href="http://192.168.1.162:8080."&gt;http://192.168.1.162:8080.&lt;/A&gt;  This is because VirtualBox has port 8080 forwarding from my laptop to the VirtualBox VM.  The VM is running a Docker container that forwards port 8080 on the VM to the Docker container.&lt;/P&gt;&lt;P&gt;I hope this helps.  If it does, please accept an answer as it helps the community find solutions to questions.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2016 23:05:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-ip-address-of-sandbox-to-static/m-p/172188#M45850</guid>
      <dc:creator>myoung</dc:creator>
      <dc:date>2016-11-10T23:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Change ip address of sandbox to static?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-ip-address-of-sandbox-to-static/m-p/172189#M45851</link>
      <description>&lt;P&gt;Hi, i can also access my ambari-server via 8080.. but when i want to add hosts to the sandbox, they will not register as the agents cannot connect to the server. if i try to ping from an agent node to the sandbox (172.17.0.2)  it wont ping either, but i can ping to the docker (172.17.01).&lt;/P&gt;&lt;PRE&gt;Failed to connect to &lt;A href="https://sandbox.hortonworks.com:8440/ca" target="_blank"&gt;https://sandbox.hortonworks.com:8440/ca&lt;/A&gt; due to [Errno 111] Connection refused  
WARNING 2016-11-10 16:04:57,138 NetUtil.py:116 - Server at &lt;A href="https://sandbox.hortonworks.com:8440" target="_blank"&gt;https://sandbox.hortonworks.com:8440&lt;/A&gt; is not reachable, sleeping for 10 seconds...&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Nov 2016 00:08:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-ip-address-of-sandbox-to-static/m-p/172189#M45851</guid>
      <dc:creator>r_young</dc:creator>
      <dc:date>2016-11-11T00:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Change ip address of sandbox to static?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-ip-address-of-sandbox-to-static/m-p/172190#M45852</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14005/ryoung.html" nodeid="14005"&gt;@Roger Young&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Ah, I see what you are trying to do.  Ambari agents use port 8440 to communicate with the server (&lt;A target="_blank" href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.2.2.0/bk_ambari_reference_guide/content/_default_network_port_numbers_-_ambari.html"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.2.2.0/bk_ambari_reference_guide/content/_default_network_port_numbers_-_ambari.html&lt;/A&gt;).  The docker container does not expose port 8440.&lt;/P&gt;&lt;P&gt;If you want to add that port, you can follow my tutorial for using the native Docker HDP sandbox to easily add ports to your containers before you create them (&lt;A target="_blank" href="https://community.hortonworks.com/content/kbentry/58458/installing-docker-version-of-sandbox-on-mac.html"&gt;https://community.hortonworks.com/content/kbentry/58458/installing-docker-version-of-sandbox-on-mac.html&lt;/A&gt;).  Look at step four in the process.&lt;/P&gt;&lt;P&gt;Unfortunately the process is a bit more difficult when using the VirtualBox + Docker version of the sandbox.  You will need to log into the VirtualBox VM directly using the VBox UI.  The username is &lt;STRONG&gt;root&lt;/STRONG&gt; and the password is &lt;STRONG&gt;hadoop&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;The startup script for the Docker sandbox is located here:&lt;/P&gt;&lt;PRE&gt;/root/start_scripts/start_sandbox.sh&lt;/PRE&gt;&lt;P&gt;Edit that file and add&lt;/P&gt;&lt;PRE&gt;-p 8440:8440 \&lt;/PRE&gt;&lt;P&gt;At this point you need to delete the existing sandbox container.  However that seems to hang for me.  So there are extra steps you need to do.&lt;/P&gt;&lt;P&gt;1. Disable the sandbox service&lt;/P&gt;&lt;PRE&gt;systemctl disable sandbox.service&lt;/PRE&gt;&lt;P&gt;2. Reboot the VM and log back in via the VBox UI.&lt;/P&gt;&lt;PRE&gt;init 6&lt;/PRE&gt;&lt;P&gt;3. Delete the sandbox container&lt;/P&gt;&lt;PRE&gt;docker rm sandbox&lt;/PRE&gt;&lt;P&gt;4. Enable the sandbox service&lt;/P&gt;&lt;PRE&gt;systemctl enable sandbox.service&lt;/PRE&gt;&lt;P&gt;5. Reboot the VM and log back in via the VBox UI.&lt;/P&gt;&lt;PRE&gt;init 6&lt;/PRE&gt;&lt;P&gt;6. Verify the sandbox service is running&lt;/P&gt;&lt;PRE&gt;docker ps -a&lt;/PRE&gt;&lt;P&gt;You should see 0.0.0.0:8440-&amp;gt;8440/tcp in the list of ports&lt;/P&gt;&lt;P&gt;7. Update the VirtualBox forwarded ports for the VM to include 8440.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 00:53:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-ip-address-of-sandbox-to-static/m-p/172190#M45852</guid>
      <dc:creator>myoung</dc:creator>
      <dc:date>2016-11-11T00:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Change ip address of sandbox to static?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-ip-address-of-sandbox-to-static/m-p/172191#M45853</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2695/myoung.html" nodeid="2695"&gt;@Michael Young&lt;/A&gt; thank you for your time,  thats what i needed to know. I can work on that tutorial now&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 01:12:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-ip-address-of-sandbox-to-static/m-p/172191#M45853</guid>
      <dc:creator>r_young</dc:creator>
      <dc:date>2016-11-11T01:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Change ip address of sandbox to static?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-ip-address-of-sandbox-to-static/m-p/172192#M45854</link>
      <description>&lt;P&gt;And what this fails to mention is that deleting the container deletes any customization, such as any NiFi installation or anything else custom you've worked on. Need to setup port forwarding first. Found that out the hard way.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2017 05:30:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Change-ip-address-of-sandbox-to-static/m-p/172192#M45854</guid>
      <dc:creator>jason_kazarian</dc:creator>
      <dc:date>2017-06-23T05:30:18Z</dc:date>
    </item>
  </channel>
</rss>

