Posts

Word count program using hive query

Image
We have already done the setup of hive in our local machine with the help of my previous article, hive installation and now time to start with the hello world implementation of hadoop in hive, which is also known as word count in hive :) In this post, I am going to show you an example of word count program using hive, although we have already done the same using map reduce program here at word count in map reduce tutorial . Word count program using hive Input sample data: This is my first hive tutorial, which is known as hello world program in big data , big data technologies are now on demand. Expected Output: To achieve the above one, I am going to give you a very short and simple query unlike many lines of code while doing with map reduce :) Instead of directly executing the complete query, I'm breaking them in a step by step, so that it will help easy to read as well as easy understand, of course at the end you will find a complete query to full fill your nee...

Scala Tutorial | Scala Vs Java

Image
Scala is getting much and more popular, and become one of the favourite alternative of Java that's the reason why Scala grown exponentially. Scala syntax is very much similar to Java, and the best is that Scala runs on JVM(Java Virtual Machine), that means Scala is fully compatible with Java syntax, one can easily mix both code Scala and Java on same class.We have already seen an overview of Scala in my previous article . After compiling the Scala code, it will generate the .class file similar to Java, which makes it write once run anywhere compatible, even you will get all the objects/method of java.lang package by default into Scala code. Although Scala is very much similar to Java, but still has some major differences, which caused the invention of Scala, and those are listed below. Differences between Scala and Java 1. Scala is pure object oriented with fully support of functional programming The first and major difference between Scala and Java is that, Scala is pure ...

What is MapReduce in Hadoop

Image
Big data technologies are getting much and more popular and very demanding, we have already seen what is big data in my previous post and the fundamentals to process those big data you need Hadoop and MapReduce, here is a detail description about what is Hadoop and in this post, I am going to explain you what is MapReduce with a very popular word count program example. For complete Hadoop MapReduce tutorial you may follow this Hadoop MapReduce Tutorial What is MapReduce?? MapReduce is a programming model for processing the big data into a distributed fashion(parallel processing) with the help of commodity hardware on large cluster of computer, in a very reliable and fault tolerant manner. MapReduce works on two different phases by breaking the job into map task and reduce task, each task works on a key value pattern and both takes key-value pair as an input and produce the key-value pair as an output. Output of Map task become an input for the Reduce task, although the type ...

Hadoop Tutorial | What is Hadoop

Image
Hot in the market, built for insights, solution for those who are fighting with EDW with peta bytes of data sets, cost effective,easy to learn,resources are easily reachable unlike grid computing resource. Too many resource on the internet to learn. Nowadays you will find this technology is trending in the market, Hadoop is very popular in very short period,although not very short it's already crossed the 10 years but now actually market is getting opted the big data technologies and of course Hadoop is the fundamental of big data related technology although more than 50 popular big data technologies are in the market but the initial one is Hadoop and known as fundamental of big data technology and in this post, I am trying to explain you what is Hadoop? If you want to read about big data you can follow this What is Big Data . What is Hadoop ?? The Apache Hadoop is an open source software framework for storing and processing the large data( big data ) sets in a distributed fash...

Scala Tutorial | Scala installation | Scala IDE installation | Set up Scala Environment

Image
Scala is getting much and more mature, nowadays it becomes industry demanding technology. Although syntax is very much similar to Java, but what Scala makes different from Java is, it's fully supported functional programming as well as pure object oriented language, there is nothing so called primitive in Scala. Here is a detailed differences between Java and Scala . Anyway, we are here to share the Scala installation steps. If you are very new to Scala than, I must say visit this link to catch the glimpse of Scala. The Scala installation guide is very much similar to Java installation . In this article, I will show you how to install Scala SDK and than Scala IDE with Hello world program, for detail explanation of Hello World program must visit this link . Steps to install Scala SDK Before scala installation, install Java, if you have not already installed Java than follow this step-by-step guide to install java . Verify java installation : java -version The above com...

Scala Tutorial | Scala Overview

Image
The Scala is an acronym for scalable language. It's a pure object oriented programming language with support of functional programming. Scala runs on the JVM(Java Virtual Machine) as well as on android you can mix both Java and Scala code in same project/class. Scala compiler includes Java compilers/libraries. Scala began it's life in near 2003, created by Martin Odersky and his team at EPFL, Scala has since grown into a mature open source programming language and today become one of the popular open source for industry and used by some big companies like Linkedin, Twitter, Intel and many more. Copied from Scala is a pure-bred object-oriented language. Conceptually, every value is an object and every operation is a method-call. The language supports advanced component architectures through classes and traits. Scala syntax is very much similar to Java, It's a Java like programming language which unifies object oriented and functional programming. Scala current s...

Fail-Fast Vs Fail-Safe Iterator in java

Last updated: September 2026 — rewritten with code examples, a comparison table, and interview Q&A. Fail-fast vs fail-safe is a classic concurrency interview question — and a common tripwire. Most candidates can recite the definitions; few can explain why the distinction exists. It's also the doorway into deeper concurrency topics ( BlockingQueue , CountDownLatch ), so interviewers use it to decide how deep to dig. What is fail-fast? A fail-fast iterator works directly on the live collection. If the collection is structurally modified (add/remove) while iterating — by any means except the iterator's own remove() — it throws ConcurrentModificationException immediately: List<String> langs = new ArrayList<>(Arrays.asList("Java", "Scala", "C++")); Iterator<String> it = langs.iterator(); while (it.hasNext()) { String lang = it.next(); if (lang.equalsIgnoreCase("java")) { langs.remove(lang); // st...