Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Backup the configuration in place for Apache proxy :

    Code Block
    mv /opt/datafari/apache/sites-available/tomcat.conf /opt/datafari/apache/sites-available/tomcat.bkp
  2. Copy the configuration for HTTP :

    Code Block
    cp /opt/datafari/bin/deployUtils/docker/tomcat.conf /opt/datafari/apache/sites-available/
  3. Apply the new configuration :

    Code Block
    apachectl restart

...

Info

Valid from 4.0 to 4.2

The documentation below is valid from Datafari v4.0.0 to 4.2


To disable the SSL protocol in Datafari, follow these steps:

  1. Execute the following command:

    Code Block
    /opt/datafari/solr/server/scripts/cloud-scripts/zkcli.sh -zkhost localhost:2181 -cmd clusterprop -name urlScheme -val http
  2. Stop Datafari

  3. Edit the file /opt/datafari/tomcat/webapps/Datafari/WEB-INF/web.xml and comment these lines:

    Code Block
    <!-- Force HTTPS on All Datafari -->
       <security-constraint>
         <web-resource-collection>
             <web-resource-name>Datafari</web-resource-name>
             <url-pattern>/*</url-pattern>
         </web-resource-collection>
         <user-data-constraint>
             <transport-guarantee>CONFIDENTIAL</transport-guarantee>
         </user-data-constraint>
       </security-constraint>


  4. Edit the file /opt/datafari/solr/bin/solr.in.sh and comment these lines (put a '#' in front of them):

    Code Block
    SOLR_SSL_KEY_STORE=${DATAFARI_HOME}/ssl-keystore/datafari-keystore.jks
    SOLR_SSL_KEY_STORE_PASSWORD=DataFariAdmin
    SOLR_SSL_TRUST_STORE=${DATAFARI_HOME}/ssl-keystore/datafari-keystore.jks
    SOLR_SSL_TRUST_STORE_PASSWORD=DataFariAdmin
    SOLR_SSL_NEED_CLIENT_AUTH=false
    SOLR_SSL_WANT_CLIENT_AUTH=false
  5. Edit the file /opt/datafari/tomcat/conf/solr.properties and set the parameter SOLRPROTOCOL to 'http':

    Code Block
    SOLRPROTOCOL=http


  6. Edit the file /opt/datafari/tomcat/conf/datafari.properties and set the parameter SOLRHOSTS to 'localhost:2181':

    Code Block
    SOLRHOSTS=localhost:2181
  7. Edit the file /opt/datafari/elk/kibana/config/kibana.yml and comment the following lines:

    Code Block
    server.ssl.enabled: true
    server.ssl.certificate: /opt/datafari/ssl-keystore/datafari-cert.pem
    server.ssl.key: /opt/datafari/ssl-keystore/datafari-key.pem
  8. Start Datafari

  9. Go to the admin interface, Statistics/ELK configuration and change the Kibana URI parameter to use http instead of https: http://127.0.0.1:5601/app/kibana