ssh root@IP -p 22
HDP 2.5 Sandbox Container
ssh root@IP -p 2222
Note: here the IP is the public IP address for VM. It's NOT the IP for Container.
1) login to the Sandbox VM
$ ssh root@IP -p 222) Disable sandbox.service
$ systemctl disable sandbox.service
3) Reboot the VM
$ init 6
4) Modify sandbox start script
$ vi /root/start_scripts/start_sandbox.sh
Go search "-p 2222:22 \"
Add a new line after that, like:
-p 1234:1234 \
save and exit.
5) Delete existing sandbox container
$ docker rm sandbox
6) Enable sandbox.service
systemctl enable sandbox.service
7) Reboot the VM
$ init 6
8) Verify new ports
$ docker ps |grep 1234You should see that 1234 is now in the list.
No comments:
Post a Comment