New Contributor
Posts: 4
Registered: ‎03-04-2019

Changing port on Solr and Zookeeper in CDH 5.16.1

[ Edited ]

I have completed the installation of CDH 5.16.1 on Ubuntu 16.04 LTS with OpenJDK 8.


My employer has developed a UI using Banana (currently packaged with Fusion) that I am required to run on a VM hosted in my machine. The Banana UI needs Solr both to operate and to store data collections that can be visualised. In this case, the Solr instance within the VM uses ports 8983 and 7574. The Banana UI also has a unique security feature developed by my employer (which I have to familirise myself with) that does not yet allow me to host the entire contents of the VM on my server which also hosts the Cloudera CDH instance.


Due to the above arrangement, it is not possible for me to startup Cloudera CDH (though Cloudera Manager is still running). This has proven to be a difficulty since I need to use Solr and also use the various tools (Spark etc).


Could you tell me how I could change the default port for Cloudera Solr (from 8983 to an appropriate port) and for Cloudera Zookeeper (from 2181 to an appropriate port)? I hma not very familiar with the layout or intricacies of the Cloudera Manager on CDH 5.16.1. Thank you.

Cloudera Employee
Posts: 7
Registered: ‎10-21-2018

Re: Changing port on Solr and Zookeeper in CDH 5.16.1



You can go to Cloudera Manager -> Solr -> Configuration, and there you can change the following parameters:

Solr HTTP Port (default 8983)

Solr Admin Port (default 8984)

Solr HTTPs Port (default 8985)


Similarly for Zookeeper, you can change the client port (where Solr will connect to, default 2181), and also the Quorum Port, Election Port and JMX Remote Port if they are also conflicting with outher services.


After you save the changes, please go to the Cloudera Manager home page, you will see blue icons near the service names indicating the need of redeploying client configuration and orange icons indicating the need to restart affected services. For example, the Solr client configuration variable ZK_QUORUM and the environment variable SOLR_ZK_ENSEMBLE needs to be updated to reflect the new client port - this is all done by CM when redeploying client configs. You can do so either by following the blue icon(s) or by selecting 'Deploy Client Configurations' from the dropdown triangle to the right of the cluster name. You will also need to restart the affected services.


Best Regards,