Category Archives: Programming

Setup Quartz Scheduler with MYSQL Database

Setup Quartz Scheduler with MYSQL Database

Setup Quartz Scheduler with MYSQL Database

Setup Quartz Scheduler with MYSQL Database

This article details on how to setup Quartz server with MYSQL database. Setup MYSQL Download the latest version of Quartz distribution from the website http://quartz-scheduler.org/downloads and extract it. The distribution will be in TAR format. Install MYSQL and go to command line interface to create the required database and tables. Create a database named quartz. Now use… Read More »

Import Data from Mongo DB to Elasticsearch using Elasticsearch River

Import Data from Mongo DB to Elasticsearch using Elasticsearch River

Import Data from Mongo DB to Elasticsearch using Elasticsearch River

Import Data from Mongo DB to Elasticsearch using Elasticsearch River

           Importing data from Mongo DB to Elasticsearch requires Mongo DB to have replica set enabled. Once the replica set is enabled, Mongo DB populates the oplog (operation log) as and when we add documents to the collection in the database (except database named local, which is used by Mongo DB to… Read More »

Monitor Elasticsearch Servers with Shell Script – E-Mail Notification

Monitor Elasticsearch Servers with Shell Script - E-Mail Notification

Monitor Elasticsearch Servers with Shell Script – E-Mail Notification

Monitor Elasticsearch Servers with Shell Script - E-Mail Notification

           The following shell script can be used to monitor Elasticsearch servers. The basic idea is that the server (IP:9200) will respond with a color code(Green, Red and Yellow). We use the color code to know the status of the server and notify the users through configured E-Mail addresses. An E-Mail… Read More »

Spring Boot – Use External/Local Tomcat instead of Embedded/In-built Tomcat server

Spring Boot - Use External/Local Tomcat instead of Embedded/In-built Tomcat server

Spring Boot – Use External/Local Tomcat instead of Embedded/In-built Tomcat server

Spring Boot - Use External/Local Tomcat instead of Embedded/In-built Tomcat server

Default pom.xml with exclusions tag to exclude embedded TOMCAT server: <?xml version=”1.0″ encoding=”UTF-8″?> <project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd”> <modelVersion>4.0.0</modelVersion> <groupId>org.test</groupId> <artifactId>demo</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>jar</packaging> <name>demo</name> <description>Demo project for Spring Boot</description> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.2.1.RELEASE</version> <relativePath/> <!– lookup parent from repository –> </parent> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <start-class>demo.DemoApplication</start-class> <java.version>1.7</java.version> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> </exclusion>… Read More »