WebHDFS port number -P (-PORT)

Use the -P port command to identify the WebHDFS port number.

This is the port on which Name Node listens for WebHDFS HTTP requests. This port is typically 5870 or 50070, depending upon Hadoop distributions.