This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.taligentia.solrj; | |
| import org.apache.solr.client.solrj.SolrResponse; | |
| import org.apache.solr.client.solrj.SolrServerException; | |
| import org.apache.solr.client.solrj.impl.CloudSolrClient; | |
| import org.apache.solr.client.solrj.request.UpdateRequest; | |
| import org.apache.solr.common.SolrInputDocument; | |
| import java.io.IOException; | |
| import java.net.URI; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| steps: | |
| - name: gcr.io/cloud-builders/docker | |
| entrypoint: bash | |
| args: | |
| - -c | |
| - | | |
| docker build -t $_AR_HOSTNAME/$PROJECT_ID/$_AR_REPO/$_SERVICE_NAME:$COMMIT_SHA --build-arg READPASSWORD=$$READPASSWORD hdtmdata | |
| secretEnv: ['READPASSWORD'] | |
| - name: gcr.io/cloud-builders/docker | |
| args: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM maven:3.6.3-openjdk-11 AS builder | |
| # La variable d'envirronement READPASSWORD est passée en argument lors du build : docker build -t ... --build-arg READPASSWORD=... | |
| # Elle est utilisée dans l'étape "mvn -e -B dependency:resolve" par substitution dans /root/.m2/settings.xml (<password>${env.READPASSWORD}</password>) | |
| # Lors du build dans Cloud Build (cloudbuild.yaml), la valeur est récupérée depuis Secret Manager | |
| ARG READPASSWORD | |
| RUN apt-get update && apt-get -y install dos2unix | |
| WORKDIR /app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| aaliyah | |
| aapeli | |
| aapo | |
| aaren | |
| aarne | |
| aaron | |
| aarón | |
| aatami | |
| aatto | |
| aatu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public boolean doAuthenticate( | |
| HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) | |
| throws Exception { | |
| String authHeader = request.getHeader("Authorization"); | |
| boolean isAjaxRequest = isAjaxRequest(request); | |
| if (authHeader != null) { | |
| ===> si il y a un header Authorization, tentative d'authentification | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Lorsque Solr démarre, il efface les logs existants de la JVM ($SOLR_LOGS_DIR/solr_gc*). | |
| Lors d'un plantage, on relance généralement Solr sans sauver les logs. | |
| Pour une analyse de problèmes de stabilité et de performances, Il est nécessaire de conserver ces logs | |
| après redémarrage pour une durée de 7 jours. | |
| Pour cela, il est possible de modifier le script de configuration solr.in.sh afin d'y ajouter à la fin | |
| les lignes suivantes. Ces lignes procèdent à un archivage de logs avant effacement et à une purge | |
| des archives de plus de 7 jours. | |
| if [ "x$1" = "xstart" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Solr 8 - Java sample in order to get shards leaders for a collection | |
| # | |
| package fr.eolya.solr.tests; | |
| import org.apache.solr.client.solrj.impl.CloudSolrClient; | |
| import org.apache.solr.common.cloud.Slice; | |
| import org.apache.solr.common.cloud.ZkStateReader; | |
| import org.apache.zookeeper.KeeperException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # logstash Start/Stop logstash server. | |
| # | |
| # chkconfig: 35 99 01 | |
| # description: logstash server | |
| # | |
| # processname: logstash | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # kibana Start/Stop kibana server. | |
| # | |
| # chkconfig: 35 99 01 | |
| # description: kibana server | |
| # | |
| # processname: kibana | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # elasticsearch Start/Stop elasticsearch server. | |
| # | |
| # chkconfig: 35 99 01 | |
| # description: elasticsearch server | |
| # | |
| # processname: elasticsearch | |
| # |
NewerOlder