Posts

Elastic Search - Open and Close all Indices using python

If you are using Elastic Search and need to Close all indices this python script does it for you. It also provides the option to open all indices as well ! #!/usr/bin/env python import json import simplejson import urllib.request as request import sys import time ###################################################################### # Usage: # Set the elasticsearch_addr in the file, (this can be externalized) # - NGINX URL which point to ElasticSearch with Auth Header # python <filename>.py close # python <filename>.py open # ###################################################################### elasticsearch_addr = "http://NGINX-POINTS-TO-ELASTICSEARCH:80" def fetch_document_list_with_status () : # URL to fetch all indices request_url = elasticsearch_addr + '/' + '_cat/indices?format=json&pretty=true' response = request.urlopen(request_url) json_data = simplej...

Sonar on AWS

Image
Contents About Features Details Installing Maven MySQL Some useful commands on linux About Sonar  (originally an  acronym  for  SO und  N avigation  A nd  R anging) is a technique that uses  sound  propagation (usually underwater, as in  submarine navigation ) to  navigate , communicate with or detect objects on or under the surface of the water, such as other vessels. Sonar  is an  open source   software quality  platform. Sonar uses various  static code analysis  tools such as  Checkstyle ,  PMD ,  FindBugs  to extract software metrics, which then can be used to improve software quality. It runs as a  stand-alone web server  that new code can be pushed to via a  Maven  command. It also stores a  history  of previous builds in an in-memory or MySQL  database . Features All projects at a glance Drill down to source code...