<?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: How to add port forwarding in HDP Sandbox 2.6.5? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-add-port-forwarding-in-HDP-Sandbox-2-6-5/m-p/207072#M169033</link>
    <description>&lt;P&gt;&lt;EM&gt;&lt;A href="@Krystle Salazar"&gt; @Krystle Salazar&lt;/A&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;There is  no better resource than  this HW KB document on port forwarding &lt;A href="https://community.hortonworks.com/articles/65914/how-to-add-ports-to-the-hdp-25-virtualbox-sandbox.html" target="_blank"&gt; HDP 2.5 VirtualBox Sandbox&lt;/A&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If that helped please accept the answer to close the thread  Happy HDP'ing&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;HTH&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Oct 2018 03:01:58 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2018-10-04T03:01:58Z</dc:date>
    <item>
      <title>How to add port forwarding in HDP Sandbox 2.6.5?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-add-port-forwarding-in-HDP-Sandbox-2-6-5/m-p/207071#M169032</link>
      <description>&lt;P&gt;Hello community!&lt;/P&gt;&lt;P&gt;I have a problem with the last version of the HDP Sandbox (2.6.5), I know about &lt;A href="https://es.hortonworks.com/tutorial/sandbox-architecture/" target="_blank"&gt;this article&lt;/A&gt; explaining the new architecture but I still don't understand how I can add new ports. Could someone please explain in simple steps how to do this?&lt;/P&gt;&lt;P&gt;I would like to add the MySQL port.&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 13:46:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-add-port-forwarding-in-HDP-Sandbox-2-6-5/m-p/207071#M169032</guid>
      <dc:creator>krystle_salazar</dc:creator>
      <dc:date>2022-09-16T13:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to add port forwarding in HDP Sandbox 2.6.5?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-add-port-forwarding-in-HDP-Sandbox-2-6-5/m-p/207072#M169033</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="@Krystle Salazar"&gt; @Krystle Salazar&lt;/A&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;There is  no better resource than  this HW KB document on port forwarding &lt;A href="https://community.hortonworks.com/articles/65914/how-to-add-ports-to-the-hdp-25-virtualbox-sandbox.html" target="_blank"&gt; HDP 2.5 VirtualBox Sandbox&lt;/A&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If that helped please accept the answer to close the thread  Happy HDP'ing&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;HTH&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 03:01:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-add-port-forwarding-in-HDP-Sandbox-2-6-5/m-p/207072#M169033</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-10-04T03:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to add port forwarding in HDP Sandbox 2.6.5?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-add-port-forwarding-in-HDP-Sandbox-2-6-5/m-p/207073#M169034</link>
      <description>&lt;P&gt;Hello &lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271" target="_blank"&gt;@Geoffrey Shelton Okot&lt;/A&gt; sorry for my late response, but that tutorial doesn't work anymore for version 2.6.5 of the sandbox.&lt;/P&gt;&lt;P&gt;Just trying to execute the first command already gives error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="92773-captura.png" style="width: 736px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16991i197CDE39B198A11E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="92773-captura.png" alt="92773-captura.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And the ´start_scripts´ is not found in the ´/root' directory. I know that that tutorial works well until version 2.6.4, however this is not the case why I ask.&lt;/P&gt;&lt;P&gt;So again, is there a way to add ports forwarding in the new version?&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 04:37:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-add-port-forwarding-in-HDP-Sandbox-2-6-5/m-p/207073#M169034</guid>
      <dc:creator>krystle_salazar</dc:creator>
      <dc:date>2019-08-18T04:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to add port forwarding in HDP Sandbox 2.6.5?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-add-port-forwarding-in-HDP-Sandbox-2-6-5/m-p/207074#M169035</link>
      <description>&lt;P&gt;
	I asked the same question on &lt;A href="https://github.com/hortonworks/data-tutorials"&gt;Github&lt;/A&gt; and they answered me, this was what worked for me.&lt;/P&gt;&lt;P&gt;
	Read the &lt;A href="https://github.com/hortonworks/data-tutorials/issues/557#issuecomment-432097658"&gt;vineshcpaul's answer&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;
	I copy it here:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;
	If you have HDP 2.6.5 VM deployed, there should be a file name generate-proxy-deploy-script.sh under /sandbox/deploy-scripts/assets. Please try editing the script to add a port that you want to forward. There are 2 arrays defined in the script, one is called tcpPortsHDP, add a new entry in the following format considering port 23232 as the one you need to forward.&lt;BR /&gt;
	[23232]=23232.&lt;BR /&gt;
	Once the change is made, rerun the script&lt;BR /&gt;
	cd /sandbox/deploy-scripts&lt;BR /&gt;
	assets/generate-proxy-deploy-script.sh&lt;/P&gt;&lt;P&gt;
	This generate as new script proxy-deploy.sh under /sandbox/deploy-scripts/sandbox/proxy/proxy-deploy.sh&lt;/P&gt;&lt;P&gt;
	execute proxy-deploy.sh to get the new reverse proxy deployed.&lt;BR /&gt;
	cd /sandbox/deploy-scripts&lt;BR /&gt;
	sandbox/proxy/proxy-deploy.sh&lt;BR /&gt;
	Also, the port needs to be forwarded on the virtualbox as well .&lt;BR /&gt;
	VirtualBox -&amp;gt; settings -&amp;gt; network -&amp;gt; Advanced -&amp;gt; port forwarding -&amp;gt; add new port forwarding rule&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 30 Oct 2018 02:39:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-add-port-forwarding-in-HDP-Sandbox-2-6-5/m-p/207074#M169035</guid>
      <dc:creator>krystle_salazar</dc:creator>
      <dc:date>2018-10-30T02:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to add port forwarding in HDP Sandbox 2.6.5?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-add-port-forwarding-in-HDP-Sandbox-2-6-5/m-p/207075#M169036</link>
      <description>&lt;P&gt;Dear &lt;A href="https://community.hortonworks.com/users/39237/krystlesalazar.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Krystle,&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please take a look. I tried your approach. The proxy-deploy is generated at a different path. &lt;A href="https://community.hortonworks.com/users/39237/krystlesalazar.html" rel="nofollow noopener noreferrer" target="_blank"&gt; &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="93516-test.png" style="width: 662px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16989iB9FFAAFCD0224D05/image-size/medium?v=v2&amp;amp;px=400" role="button" title="93516-test.png" alt="93516-test.png" /&gt;&lt;/span&gt;&lt;/P&gt;,&lt;P&gt;Dear Krystle, &lt;/P&gt;&lt;P&gt;What did I do wrong? You connect to port 22 ...righT? &lt;/P&gt;&lt;P&gt;I ran this file "/sandbox/deploy-scripts/assets/generate-proxy-deploy-script.sh" from the root directory "/". Like this "bash /sandbox/deploy-scripts/assets/generate-proxy-deploy-script.sh"&lt;/P&gt;&lt;P&gt;This file is genereated at different path "proxy-deploy.sh"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="93515-test.png" style="width: 662px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16990i04936D8B75117AED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="93515-test.png" alt="93515-test.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 04:37:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-add-port-forwarding-in-HDP-Sandbox-2-6-5/m-p/207075#M169036</guid>
      <dc:creator>codemiles</dc:creator>
      <dc:date>2019-08-18T04:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to add port forwarding in HDP Sandbox 2.6.5?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-add-port-forwarding-in-HDP-Sandbox-2-6-5/m-p/207076#M169037</link>
      <description>&lt;P&gt;I tried this in HDP3.0.1 everything at first seems ok and all services are started but then I found that I cannot start spark-shell, the error prompted that port 4040 cannot be bind. Seems I broke the proxy setting when modifying the file. Really would like to have some hints to go further...&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 10:47:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-add-port-forwarding-in-HDP-Sandbox-2-6-5/m-p/207076#M169037</guid>
      <dc:creator>teru11569</dc:creator>
      <dc:date>2019-01-16T10:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to add port forwarding in HDP Sandbox 2.6.5?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-add-port-forwarding-in-HDP-Sandbox-2-6-5/m-p/287446#M213039</link>
      <description>&lt;P&gt;- Run virtual machine&lt;BR /&gt;ssh -p 2122 root@localhost&lt;BR /&gt;-u root&lt;BR /&gt;-p hadoop&lt;/P&gt;&lt;P&gt;- vi /sandbox/proxy/generate-proxy-deploy-script.sh&lt;/P&gt;&lt;P&gt;Please try editing the script to add a port that you want to forward.&lt;BR /&gt;There are 2 arrays defined in the script, one is called tcpPortsHDP,&lt;BR /&gt;add a new entry in the following format considering port 9200 as the one you need to forward.&lt;BR /&gt;[9200]=9200. (Example to use Elasticsearch in HDP Sandbox 2.6.5)&lt;/P&gt;&lt;P&gt;- Save the file and rerun the script. This script generate new file 'proxy-deploy.sh' which is in the same directory&lt;BR /&gt;(/sandbox/proxy/) and Run the script 'proxy-deploy.sh'&lt;/P&gt;&lt;P&gt;- Check that port is already opened: run 'docker ps'. In the middle of all ports opened in the proxy towards the&lt;BR /&gt;VM you will see your last ports configured. That's fine.&lt;/P&gt;&lt;P&gt;- Reboot the system&lt;/P&gt;&lt;P&gt;- VirtualBox -&amp;gt; settings -&amp;gt; network -&amp;gt; Advanced -&amp;gt; port forwarding -&amp;gt; add new port forwarding rule using 0.0.0.0 IP address&lt;BR /&gt;(maybe you will have to allow access in the firewall on the host machine (in my case window)&lt;/P&gt;&lt;P&gt;Enjoy, your address is available for it access on your host machine explorer!!!&lt;/P&gt;&lt;P&gt;- In my case, for Elasticsearch, was necessary add to /etc/elasticsearch/elasticsearch.yml add the following code:&lt;/P&gt;&lt;P&gt;network.bind_host: 0.0.0.0 (THAT IS THE THEY TO ALLOW IT WORKING GOOD!!)&lt;BR /&gt;transport.host: localhost&lt;/P&gt;&lt;P&gt;node.master: true&lt;BR /&gt;node.data: true&lt;BR /&gt;transport.tcp.port: 9300&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2020 18:31:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-add-port-forwarding-in-HDP-Sandbox-2-6-5/m-p/287446#M213039</guid>
      <dc:creator>TatanParker</dc:creator>
      <dc:date>2020-01-11T18:31:43Z</dc:date>
    </item>
  </channel>
</rss>

