private int getNameNodePort() {
		try {
			URI uri = new URI(nameNode);
			return uri.getPort();
		}
		catch (URISyntaxException e) {
			throw new IllegalStateException(e.getMessage(), e);
		}

	}
Returns the port of the name node.

@return name nodes port.
spring-xd-integration-test/src/main/java/org/springframework/xd/integration/util/HadoopUtils.java