[ POPULAR STORIES ]

CATCH UP THE POPULAR STORIES

Elasticsearch Java API – Get Alias List

The following is sample Java program to get the list of aliases in an Elasticsearch instance. Sample Program: package com.report.test; import java.util.ArrayList; import java.util.List; import org.elasticsearch.client.Client; import org.elasticsearch.client.transport.TransportClient; import org.elasticsearch.cluster.metadata.AliasMetaData; import org.elasticsearch.common.collect.ImmutableOpenMap; 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… Read More »

Read more
Alternative text

Cannot delete folder: It is being used by another person or program – How to Solve this Issue

      Many of you might have faced this issue when ejecting pendrive or USB harddrive from the computer. This issue comes when the content of the pendrive pf the external drive being used by the system. For example, consider a word document from a pendrive is opened. Now you will not be able… Read More »

Read more
Alternative text

javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name – Solved

The exception javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name javax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name is actually a bug in the Java v1.7. However we wont get this exception in Java v1.6. To solve this issue, you can either roll back the Java version to 1.6 or add the following code to your start of the program. System.setProperty(“jsse.enableSNIExtension”, “false”);

Read more
Alternative text

Remove X-Powered-By Headers (Servlet/2.5 JSP/2.1) in WebLogic (Oracle) Server

Go to Oracle WebLogic admin console Select Deployments in Domain Structure Select the required application in Deployments Select Configuration tab, then select Application tab Remove the text in Monitoring Attribute Name text box

Read more
Alternative text

Query/Access Root Level Properties and Nested Properties of Vertex in Single Query – Gremlin Query – Titan

Gremlin Query: g.V().hasLabel('TEST_LABEL').has('_id','xxxxxxxxxxxxxx').as('v') .select('v').valueMap(true).as('properties') .select('v').properties('nestedPropertiesKey').valueMap().as('nestedProperties') .select('properties','nestedProperties') Sample Response: { "properties":{ "attr1":"value1" }, "nestedProperties":{ "nestedAttr1":"nestedValue1" } } Related Links:

Read more
Alternative text

[ LATEST STORIES ]

CATCH UP THE LATEST STORIES

[ SUBSCRIBE TO OUR BLOG ]