Skip to content

Commit

Permalink
Merge pull request #880 from rax-maas/es-init-fix
Browse files Browse the repository at this point in the history
fixes path problem in init-es.sh
  • Loading branch information
rohitsngh27 committed Jun 15, 2022
2 parents ee40c7c + fe0ebb0 commit babda3d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions blueflood-elasticsearch/src/main/resources/init-es.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,21 +101,20 @@ curl $AUTH -XPOST $ELASTICSEARCH_URL'/_aliases' -d '

#add index settings to metric_metadata index
curl $AUTH -XPOST $ELASTICSEARCH_URL'/metric_metadata/_close'
curl $AUTH -XPUT $ELASTICSEARCH_URL'/metric_metadata/_settings' -d @index_settings.json
curl $AUTH -XPUT $ELASTICSEARCH_URL'/metric_metadata/_settings' -d @$ABSOLUTE_PATH/index_settings.json
curl $AUTH -XPOST $ELASTICSEARCH_URL'/metric_metadata/_open'

#add mappings to metric_metadata index
curl $AUTH -XDELETE $ELASTICSEARCH_URL'/metric_metadata/_mapping/metrics' >& /dev/null
curl $AUTH -XPUT $ELASTICSEARCH_URL'/metric_metadata/_mapping/metrics' -d @metrics_mapping.json
curl $AUTH -XPUT $ELASTICSEARCH_URL'/metric_metadata/_mapping/metrics' -d @$ABSOLUTE_PATH/metrics_mapping.json

#add mappings to metric_tokens index
curl $AUTH -XDELETE $ELASTICSEARCH_URL'/metric_tokens/_mapping/tokens' >& /dev/null
curl $AUTH -XPUT $ELASTICSEARCH_URL'/metric_tokens/_mapping/tokens' -d @tokens_mapping.json
curl $AUTH -XPUT $ELASTICSEARCH_URL'/metric_tokens/_mapping/tokens' -d @$ABSOLUTE_PATH/tokens_mapping.json

#add mappings to graphite_event index
curl $AUTH -XDELETE $ELASTICSEARCH_URL'/events/_mapping/graphite_event' >& /dev/null
curl $AUTH -XPUT $ELASTICSEARCH_URL'/events/_mapping/graphite_event' -d @events_mapping.json
curl $AUTH -XPUT $ELASTICSEARCH_URL'/events/_mapping/graphite_event' -d @$ABSOLUTE_PATH/events_mapping.json

#mark ES initialized for Blueflood by creating a marker index
curl $AUTH -XPUT $ELASTICSEARCH_URL'/blueflood_initialized_marker'

0 comments on commit babda3d

Please sign in to comment.