connect to kerbros enable hive from Windows machine
While connecting the hive installed in linux machin with kebros enabled from windows maching using jdbc driver we will face few issues with the kebros. to address the kerbros issue we need to add the keytab file and kerbros conf file as well. add necessary jars and then add the krb.conf file to the JVM argument -Djava.security.krb5.conf="C:\\MyFiles\krb5.conf" Java Code: package com.hive.connect; import java.sql.Connection; import java.sql.DriverManager; import java.sql.Statement; import java.util.logging.Logger; import org.apache.hadoop.security.UserGroupInformation; public class HiveConnect { private static final Logger logger = Logger.getLogger(" com.hive.connect.HiveConnect "); private static final String JDBC_DRIVER_NAME = "org.apache.hive.jdbc.HiveDriver"; private static String connectionUrl; public static void main(String[] args) { System.out.println("Staring HiveConnect"); if (args.length < 4) { logger.severe(...