Category Archives: Java

Let’s Consume a Micro-service


Micro-services architecture is being widely adopted and guess what, Lagom is the most efficient way to achieve it.  While creating micro-services, we usually need to interact with other micro-services and consume their data. So the idea behind this blog is … Continue reading

Posted in Java, Microservices | Tagged , , , , , | 1 Comment

Finagle : Controlling the Future Of RPC systems


In this blog we’ll use Finagle to build a very simple HTTP server that is also an HTTP client — an HTTP proxy. So Let’s Begin With Some Introduction to the Finagle. Finagle is an extensible Remote Procedure Call (RPC … Continue reading

Posted in Java, Scala | Tagged , , , , , , | 1 Comment

Simple Java program to Append to a file in Hdfs


In this blog, I will present you with a java program to append to a file in HDFS. I will be using Maven as the build tool. Now to start with- First, we need to add maven dependencies in pom.xml. … Continue reading

Posted in big data, HDFS, Java | Tagged , , , | 1 Comment

Introducing Kafka Streams: Processing made easy


If you are working on huge amount of data, you might have heard about Kafka. At a very high level, Kafka is a fault tolerant, distributed publish-subscribe messaging system that is designed for fast processing of data and the ability … Continue reading

Posted in big data, Java, Streaming | Tagged , , , | 1 Comment

Apache Solr with Java: Result Grouping with Solrj


This blog is a detailed, step-by-step guide on implementing group by field in Apache Solr using Solrj. Note: Grouping is different from Faceting in Apache Solr. While grouping returns the documents grouped by the specified field, faceting returns the count of documents for … Continue reading

Posted in Java | Tagged , , | 1 Comment

Solr with Java: A basic hands-on with SolrJ


What is Apache Solr: Apache Solr is a search sever that includes the full-text search engine called Apache Lucene. It takes the piece of information (called documents) that are indexed according to the cores. When a query is performed, solr … Continue reading

Posted in Java | Tagged , , , , , | 3 Comments

Connecting To Presto via JDBC


Hi Guys, In this blog we’ll be discussing about how to make a connection to presto server using JDBC, but before we get started let’s discuss what Presto is. What is Presto ? So, Presto is an open source distributed … Continue reading

Posted in big data, database, Java, Scala, sql | Tagged | Leave a comment

Working with Hadoop Filesystem Api


Reading data from and writing data to Hadoop Distributed File System (HDFS) can be done in a number of ways. Now let us start understanding how this can be done by using the FileSystem API, to create and write to … Continue reading

Posted in Java | Tagged , , | Leave a comment

Building Microservices Based Enterprise Applications in Java Using Lagom – Part I


As we know, now days, most of the enterprise applications design as a “Microservices Architecture” because of scalability, sharding, loosely-coupling and many others reasons are there. On the other hand  JavaEE help us for building an Enterprise Applications. As we … Continue reading

Posted in Akka, Java, Microservices, Scala | Tagged , , , , , , , , , , | 2 Comments

Application compatibility for different Spark versions


Recently spark version 2.1 was released and there is a significant difference between the 2 versions. Spark 1.6 has DataFrame and SparkContext while 2.1 has Dataset and SparkSession. Now the question arises how to write code so that both the versions of … Continue reading

Posted in apache spark, Java, Scala, Spark | Tagged , , , , | 3 Comments