Implemented get_open_ports method for vanilla hadoop2

Partially implements: blueprint cluster-secgroups

Change-Id: I00eaa4346afe34ce0ab38a3275209c3453b17885
Merge "Implemented get_open_ports method for vanilla hadoop2"