[ POPULAR STORIES ]

CATCH UP THE POPULAR STORIES

Elasticsearch Java API – Get Index List

The following is sample Java program to get the list of indices in an Elasticsearch instance. Sample Program: package com.report.test; import org.elasticsearch.client.Client; import org.elasticsearch.client.transport.TransportClient; import org.elasticsearch.common.settings.ImmutableSettings; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.common.transport.InetSocketTransportAddress; public class SampleProgram{ public static void main(String[] args) { String hostname = "localhost"; String clusterName = "elasticsearch"; Settings settings = ImmutableSettings.settingsBuilder().put("client.transport.sniff", true).put("cluster.name", clusterName).build(); Client esclient… Read More »

Read more
Alternative text

Java JConsole – Local Process List Empty – Solved

JConsole or  Java Monitoring and Management Console Open command prompt Execute the command echo %TMP% Now you will get a path to a folder where temporary files are stored. E.g. C:\Users\Username\AppData\Local\Temp Go to that folder Remove the folder named hsperfdata_USERNAME Restart JConsole application and now you will have the list of currently running Java processes in the local process… Read More »

Read more
Alternative text

Neo4j Query Tutorial – MATCH and MERGE

Example 1: Match two nodes and create a relationship between them. MATCH (person1:LABEL{id:'1234'}),(person2:LABEL{id:'5678'}) MERGE (person1)-[r:FRIEND]-(person2) Example 2: Match two nodes and create/update a relation between them. Optionally set properties to the nodes or relationships with ON CREATE SET or ON MATCH SET. Use r+={property:’value’} to add properties or update existing properties. MATCH (user1:USER{id:'123'}),(user2:USER{id:'456'}) MERGE (user1)-[r:FRIEND]-(user2) ON CREATE SET… Read More »

Read more
Alternative text

Wireless Microsoft Xbox 360 Controller for PC – Power off with Xbox 360 Controller Manager

          Many of you would have faced this problem with Microsoft Xbox 360 wireless controller for PC where you cannot switch/power off the controller other than removing the battery bay each time when you want to power off.           The problem is no more. Download this small… Read More »

Read more
Alternative text

Ruby on Rails – Error installing mysql2: Failed to build gem native extension – Ubuntu Linux

      This is a very common issue where we get error “Error installing mysql2: Failed to build gem native extension” while installing mysql2 gem in Rails(in Ubuntu Linux OS). The problem is due to missing libmysql(from MYSQL) file. Linux Solution:       To solve the issue install the compnents libmysql-ruby and libmysqlclient-dev using the… Read More »

Read more
Alternative text

[ LATEST STORIES ]

CATCH UP THE LATEST STORIES

[ SUBSCRIBE TO OUR BLOG ]