Java

PMD (Programming Mistake Detector) What is PMD? PMD aka Programming Mistake Detector is Java Source Code Analyzer. It is used to clean erroneous code in our java projects based on predefined set of rules. PMD supports the ability to write custom rules. Issues reported by PMD may not be true […]

In Java development, a typical workflow involves restarting the server with every class change, and no one complains about it. That is a fact about Java development. We have worked like that since our first day with Java. But is Java class reloading that difficult to achieve? And could that problem […]

Java Collections Framework Notes: Collection Interface: The fundamental interface for collection classes in the Java library is the Collection interface. [crayon-5a31e4ba2a485307783629/] The add method returns true if adding the element actually changes the collection, and false if the collection is unchanged. The iterator method returns an object that implements the […]

This post provides a proof of concept of data collection from HTTP client into HBase. In this post, we will setup a flume agent with HTTP Source, JDBC Channel and AsyncHBase Sink. Initially we concentrate on POC of HTTP client data collection into HBase and at the end of this […]

In this post we will discuss the differences between Java vs Hive with the help of word count example. We will examine the Word Count Algorithm first using the Java MapReduce API and then using Hive. The following Java implementation is included in the Apache Hadoop distribution. [crayon-5a31e4ba2be5f156418758/] For implementing the Word […]

Java Interface to HDFS File Read Write This post describes Java interface to HDFS File Read Write and it is a continuation for previous post, Java Interface for HDFS I/O. Reading HDFS Files Through FileSystem API: In order to read any File in HDFS, We first need to get an instance of FileSystem underlying the […]

Java Interface for HDFS File I/O: This post describes Java Interface for Hadoop Distributed File System. It is recommended to go through this post after having basic knowledge on Java Basic Input and Output, Java Binary Input and Output and Java File Input and Output concepts. To explore more into […]

Java File Input and Output: A file is identified by its path through the file system, beginning from the root node. A symbolic link is a special file that serves as a reference to another file. when a symbolic link is deleted, or renamed then link itself is deleted, or […]

JAVA Basic Input and Output Below are some basic and important notes on File input/output through Java Programming. In Java, I/O Streams are a powerful concept that simplifies I/O Operations. An I/O Stream represents an input source or output destination. Java programs uses an input stream to read data from […]

This post describes basic JAVA Programming Notes. Comments: Java Comments can be specified in 3 styles: Mark each line with a // at the beginning of each comment line. /* and */ comment delimiters can be used tp block off a longer comment. Third kind of comment can be used […]

Below is the Installation Procedure for Oracle Java Installation on Ubuntu: Java Installation on Ubuntu: Download latest JDK version which is later than 1.6 from Oracle Site. In this installation, we used JDK 8 version. Download jdk-*-linux-x64.tar.gz zipped binary tarball for Linux 64 bit machine. Here ‘*’ refers to jdk version number for […]