Skip to content

Instantly share code, notes, and snippets.

@enricopulatzo
Created December 21, 2012 19:28
Show Gist options
  • Save enricopulatzo/4355169 to your computer and use it in GitHub Desktop.
Save enricopulatzo/4355169 to your computer and use it in GitHub Desktop.
Given a VM in VirtualBox named "Hadoop", we'll set up some named TCP forwards that are relevant. Note, I am adding a "5" to the all hadoop apps and hue ports, for consistency.
VBoxManage modifyvm "Hadoop" --natpf1 "namenode,tcp,,50070,,50070"
VBoxManage modifyvm "Hadoop" --natpf1 "datanodes,tcp,,50075,,50075"
VBoxManage modifyvm "Hadoop" --natpf1 "jobtracker,tcp,,50030,,50030"
VBoxManage modifyvm "Hadoop" --natpf1 "tasktracker,tcp,,50060,,50060"
VBoxManage modifyvm "Hadoop" --natpf1 "hbase,tcp,,60010,,60010"
VBoxManage modifyvm "Hadoop" --natpf1 "allapps,tcp,,58088,,8088"
VBoxManage modifyvm "Hadoop" --natpf1 "hue,tcp,,58888,,8888"
@enricopulatzo
Copy link
Author

Also, one will need the VM powered off (not in a save state) to update the forwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment