HDP 2.5 Add Port

Login with below credentials:

ssh -p 2122 root@localhost
username is root
password is hadoop.


Before do changes disable sandbox service by following command

systemctl disable sandbox.service

Restart Sandbox vm machine by below command: 

init 6

Open start_sandbox.sh using vi edition scroll down end:

vi /root/start_scripts/start_sandbox.sh
-p 2222:22 \
sandbox /usr/sbin/sshd -D

Add Your port For Example : 8440 like that;

-p 2222:22 \
-p 8440:8440 \
sandbox /usr/sbin/sshd -D

Now save the file:

Press ESC key
:wq!

Do commit/update your changes in sandbox by below command;

docker commit sandbox sandbox or docker commit

Enable sandbox.service:

systemctl enable sandbox.service

Reboot the VM

init 6

verify new ports:

docker ps | grep 8440


Update vm port number:

Right click virtual box settings by below mentioned in screenshot: 


After selecting settings menu, select Network icon:


In Network tab, here you can able to find Advanced option click over there. After select port forwarding option.


In Port forwarding window, right corner you can able see add button (+). Add new rule with IP and Port number, there what you want to forward.


Finally save your IP and Port number. Now you can able to connect respective service from virtual box to outside access.




Comments

Popular posts from this blog

Restful API Tutorial

Hue Installation