No Image

Log4j2 and Spark 2.3.1

August 15, 2018 0

LOG4J has been very popular logging library in Java world for years. LOG4J2 is even better. In Aug 2015 Log4j development team officially announced end of life for […]

No Image

Log4J 2 XML Configuration and Usage

August 15, 2018 0

To include Log4j2 in your project, include below dependency in your project pom.xml: <dependency>     <groupId>org.apache.logging.log4j</groupId>     <artifactId>log4j-api</artifactId>     <version>2.6.1</version> </dependency> <dependency>     <groupId>org.apache.logging.log4j</groupId>     <artifactId>log4j-core</artifactId>     <version>2.6.1</version> </dependency> Log4j2.xml for […]

No Image

Hbase and Zookeeper Znode

August 15, 2018 0

The HBase root znode path is configurable using hbase-site.xml, and by default the location is “/hbase”. All the znodes referenced below will be prefixed using […]

No Image

Eclipse and Maven Packaging Jar

August 13, 2018 0

1: add build instructions to pom.xml: <build> <plugins> <plugin> <!– Build an executable JAR –> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> <manifest> <mainClass>com.kafka.client.Run</mainClass> </manifest> </archive> </configuration> </plugin> […]

No Image

Hbase Commands

August 8, 2018 0

1. Connect to HBase. $ hbase shell hbase(main):001:0> Display HBase Shell Help Text. Type help and press Enter, to display some basic usage information for […]