Member since
01-11-2020
1
Post
0
Kudos Received
0
Solutions
01-11-2020
10:31 AM
- Run virtual machine ssh -p 2122 root@localhost -u root -p hadoop - vi /sandbox/proxy/generate-proxy-deploy-script.sh 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 9200 as the one you need to forward. [9200]=9200. (Example to use Elasticsearch in HDP Sandbox 2.6.5) - Save the file and rerun the script. This script generate new file 'proxy-deploy.sh' which is in the same directory (/sandbox/proxy/) and Run the script 'proxy-deploy.sh' - Check that port is already opened: run 'docker ps'. In the middle of all ports opened in the proxy towards the VM you will see your last ports configured. That's fine. - Reboot the system - VirtualBox -> settings -> network -> Advanced -> port forwarding -> add new port forwarding rule using 0.0.0.0 IP address (maybe you will have to allow access in the firewall on the host machine (in my case window) Enjoy, your address is available for it access on your host machine explorer!!! - In my case, for Elasticsearch, was necessary add to /etc/elasticsearch/elasticsearch.yml add the following code: network.bind_host: 0.0.0.0 (THAT IS THE THEY TO ALLOW IT WORKING GOOD!!) transport.host: localhost node.master: true node.data: true transport.tcp.port: 9300
... View more