Changing Tomcat web server settings
To configure security for DSE Search, change the IP address for client connections to DSE Search using the HTTP and Solr Admin interfaces in the Tomcat web server.xml file.
Where is the cassandra.yaml file?
The location of the cassandra.yaml file depends on the type of installation:
| Installation Type | Location |
|---|---|
Package installations + Installer-Services installations |
|
Tarball installations + Installer-No Services installations |
|
Where is the Tomcat server.xml file?
The location of the Tomcat server.xml file depends on the type of installation:
| Installation Type | Location |
|---|---|
Package installations + Installer-Services installations |
|
Tarball installations + Installer-No Services installations |
|
Procedure
Make configuration changes in the Tomcat server.xml file:
-
Change the IP address for client connections to DSE Search.
The default IP address that the HTTP and Solr Admin interface uses to access DSE Search is defined with
rpc_addressin thecassandra.yamlfile.-
The default
rpc_addressvaluelocalhostenables Tomcat to only listen on thelocalhost. -
To enable Tomcat to listen on all configured interfaces, set
rpc_addressto 0.0.0.0. To change the IP address for client connections to DSE Search using the HTTP and Solr Admin interfaces, change the client connection in the following waysrpc_addressin thecassandra.yamlfile or create a Tomcat connector. -
Create a Tomcat connector:
In the
<Service name="Solr">section of theserver.xmlfile:<Connector port="PORT" protocol="HTTP/1.1" address="IP_ADDRESS" connectionTimeout="20000" redirectPort="8443" /> -
Change the
rpc_addressChange
rpc_addressin thecassandra.yamlfile. Therpc_addressis read on startup only.Where is the
cassandra.yamlfile?The location of the
cassandra.yamlfile depends on the type of installation:Installation Type Location Package installations + Installer-Services installations
/etc/dse/cassandra/cassandra.yamlTarball installations + Installer-No Services installations
<installation_location>/resources/cassandra/conf/cassandra.yaml
-
-
For advanced users only: In the Tomcat
server.xmlfile, specify a client connection port other than the default port 8983. However, when specifying a non-default connection port, the automatic SSL connection configuration performed by DataStax Enterprise is not done. You must provide the valid connector configuration, including keystore path and password. See the DataStax Support article Configuring the DSE Solr HTTP/HTTPS port. -
After making changes, restart the node.