Jai’s Weblog – Tech, Security & Fun…

Tech, Security & Fun…

  • Jaibeer Malik

    Jaibeer Malik
  • View Jaibeer Malik's profile on LinkedIn
  • Subscribe

  • Feedburner

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 31 other followers

  • Archives

  • Categories

  • Stats

    • 412,343
  • Live Traffic

  • Advertisements

Archive for the ‘Spring’ Category

Hive: Query customer top search query and product views count using Apache Hive

Posted by Jai on May 20, 2014

This post covers to use Apache Hive to query the search clicks data stored under Hadoop. We will take examples to generate customer top search query and statistics on total product views.

In continuation to the previous posts on

we already have customer search clicks data gathered using Flume in Hadoop HDFS.

Here will analyze further to use Hive to query the stored data under Hadoop.


Hive allow us to query big data using SQL-like language HiveQL.


Hadoop Data

As shared in last post, we have search clicks data stored under hadoop with the following format “/searchevents/2014/05/15/16/”. The data is stored in separate directory created per hour.

The files are created as,


Read the rest of this entry »


Posted in Hadoop, Hive, Java, Spring, Spring Data | Tagged: , , , | 4 Comments »

Customer product search clicks analytics using big data

Posted by Jai on May 14, 2014

The application demonstrate to setup customer product search clicks analytics using big data Hadoop, Hive, Pig, Oozie, ElasticSearch, Akka, Spring Data etc.

Github Repository

URL: https://github.com/jaibeermalik/searchanalytics-bigdata

Analyzing Search Clicks Data Using Flume, Hadoop, Hive, Pig, Oozie, ElasticSearch, Akka, Spring Data.

Repository contains unit/integration test cases to generate analytics based on clicks events related to the product search on any e-commerce website.


Getting Started

The project is maven project and can be build with Eclipse. Check pom dependencies for relevant version of earch application. It uses cloudera hadoop distribution version 2.3.0-cdh5.0.0.


The scenario covered in the application for the search analytics using big data is as follow,
Read the rest of this entry »

Posted in Akka, ElasticSearch, Flume, Hadoop, Hive, Java, Oozie, Pig, Spring, Spring Data | Tagged: , , , , , , , , | 5 Comments »

Java Application performance analysis and optimization using AppDynamics

Posted by Jai on December 11, 2012

The enterprise java application stack is growing bigger and bigger which makes it equally difficult to keep control on all the layers of the infrastructure to get maximum result out of it. One of the basic requirement of any web application is well performing, we will cover here an ideal enterprise java web application setup and see how to analyze and optimize the same using AppDynamics tool.

Java Enterprise web application N-tier set up

Take an example of below n-tier java web application interacting with complex middleware system, integrate with numerous external web api’s and equally powerful backend storage system.



The diagram covers quite common and complex enterprise application set up.

  • Web Servers (eg. Apache web server)
  • Application Servers (tomcat application server)
  • Mobile application server (tomcat application server)
  • Email Server
  • Web content management server (eg. Team Site, Alfresco)
  • Web application Administration server (tomcat application server)
  • File servers (Shared disk eg. NFS)
  • Real time/Messaging/Queue server (eg. ActiveMQ)
  • Data/File processing backend servers (tomcat application server)
  • Data storage/Database servers (eg. MySQL/Oracle)

Problem Context

Read the rest of this entry »

Posted in Architecture, Database, Hibernate, Java, Security, Spring, Web Services | Tagged: , , , , , | Leave a Comment »

Tips&Tricks: Ehcache post processing method cached results

Posted by Jai on October 31, 2012

The post is to share a tip on advisory for not post processing the cached results from Ehcache method interceptor. In case you are using method cache interceptor within you application, please make sure the cached results are not updated anywhere after retrieving data from cache.

An example of how you can use spring aop method interceptor for caching the results of a method, Caching the result of methods using Spring and EHCache

Let us take an example,

List com.jai.test.TestService.getTestList();

public class TestObj implements Serializable
private List customers;

Read the rest of this entry »

Posted in Hibernate, Java, Spring | Tagged: , , , , , | Leave a Comment »

Tips&Tricks: Flex-Cairngorm-Blazeds-Spring-JPA-Hibernate

Posted by Jai on October 10, 2012

This post includes some of the lessons learned during recent integration and usage of these framework. This is just to help out in case you too fall into these small small problems which may eat of lot of your time.

Cairngorm maven pom dependency entry







The prefix “mx” for element “mx:Script” is not bound

Read the rest of this entry »

Posted in Cairngorm, Flex, General, Spring | Tagged: , , , , , | Leave a Comment »

%d bloggers like this: