No Image

Awstats, Nginx log and Nginx Server

October 5, 2018 0

Install Required Packages yum install awstats htmldoc geoip-geolite perl-Geo-IP GeoIP httpd-tools Install CPAN # yum install perl-CPAN perl-CPAN-Changes perl-CPAN-Meta perl-CPAN-Meta-Requirements # cpan CPAN perl -MCPAN […]

No Image

Postfix, Dovecot and OpenDKIM

October 4, 2018 0

Install Packages yum install procmail postfix dovecot opendkim Create a Virtual Email user groupadd -g 5000 vmail useradd -u 5000 -g vmail -s /sbin/nologin -d […]

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