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

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

Setup Postgres Master Slave Replication

June 11, 2018 0

Configure Master Server $ cd /home/postgres/data $ sudo vi postgresql.conf Edit following lines: listen_address = ‘*’ wal_level = hot_standby synchronous_commit = local archive_mode = on […]