Change default Cloudbreak ports
By default, Cloudbreak uses ports 80 (HTTP) and 443 (HTTPS) to access the Cloudbreak server (for the web UI and for the CLI). To change these port numbers, you must edit the Profile file on your Cloudbreak host.
Cloudbreak should not be running when you change the port numbers. Edit Profile either before you start Cloudbreak the first time or stop Cloudbreak before editing the file.
Steps
-
Navigate to the Cloudbreak deployment directory (typically
/var/lib/cloudbreak-deployment
) and open the Profile file with a text editor. -
Add one or both of the following parameters, setting them to the port numbers that you want to use:
export PUBLIC_HTTP_PORT=111 export PUBLIC_HTTPS_PORT=222
-
Start or restart Cloudbreak by using
cbd start
orcbd restart
. -
This change affects Cloudbreak CLI configuration. When configuring the CLI, you must provide these ports as part of the server URL. For example:
cb configure --server http://cb.server.address:111 --username test@hortonworks.com cb configure --server https://cb.server.address:222 --username test@hortonworks.com