Java


PMD5
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 […]

PMD (Programming Mistake Detector)


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 […]

Advanced Java Class Tutorial: A Guide to Class Reloading


CollectionsFramework
Java Collections Framework Notes: Collection Interface: The fundamental interface for collection classes in the Java library is the Collection interface. [crayon-59045e12bb20a517854860/] 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 […]

Short Notes on Java Collections Framework



Table increments 6
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 […]

Data Collection from HTTP Client into HBase


Hive WC out 3
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-59045e12bc32b435435589/] For implementing the Word […]

Java vs Hive


HdfsWrite
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 to HDFS File Read Write



1
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 Interface for HDFS File I/O


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 File Input and Output


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 […]

Java Basic Input and Output



Java Binary Input and Output: Java provides two types of streams to address binary input and output operations. Data Streams: Data stream API supports binary input/output of Java Primitive data types (boolean, char, byte, short, int, long, float, and double) and String values.  Java provides two important interface for Data […]

Java Binary Input and Output


1
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 […]

Basic JAVA Programming Notes


1
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 […]

Java Installation on Ubuntu