Run a Java program in Hadoop with Kerberos enabled.

Following steps are needed to run a Java program in Hadoop with Kerberos security enabled: 1. Create a text file named FileCount.java and store it in your home directory such as /home/userid 2. Copy paste the below code into the file FileCount.java . Change the hadoop hostname from quickstart.cloudera:8020 to the correct host. import java.io.*; import … Continue reading Run a Java program in Hadoop with Kerberos enabled.

Test JDBC connectivity to Oracle using Java

This blogs shows how to connect to Oracle database to test a JDBC connection: https://www.quickprogrammingtips.com/java/connecting-to-oracle-database-in-java.html Put the below java code in a text file in linux called: OracleSample.java -------------------------------------------------------------------------------------------------------------------- // Example Java Program - Oracle Database Connectivity import java.sql.Connection; import java.sql.Date; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class OracleSample { public static final … Continue reading Test JDBC connectivity to Oracle using Java

Upgrade JDK1.7 to JDK1.8 in Cloudera CDH

Environment: Cloudera CDH 5.12 on RHEL Requirements Install one of the CDH and Cloudera Manager Supported JDK Versions. Install the same version of the Oracle JDK on each host. Install the JDK in /usr/java/jdk-version All nodes must run the same JDK version. Cloudera only supports 64bit JDK from Oracle. Upgrading to Oracle JDK 1.8 in a Cloudera Manager Deployment … Continue reading Upgrade JDK1.7 to JDK1.8 in Cloudera CDH