Install eclipse dtp for mac

broken image
broken image

Before I attempt to connect to Hive Server using the connection configured in Data Source Explorer, I am using Windows command prompt to run kinit and obtain a valid ticket for my username (this is done successfully). I am configuring a connection in Data Source Explorer using the 'Generic JDBC Driver' template. Thanks I am using the Data Source Explorer in the Database Development perspective in Eclipse Luna. If you are able to run kinit from your windows, then this should work. String uri = hive_JDBC_DB_URL + '/' + db + ' principal=' + + kerberos_KERBEROS_REALM + ' =' + ('Exception in running kinit process') Ĭlass.forName(configurationService.hive_JDBC_DRIVER) ('wait for threw an exception - it was interrupted') exception.printStackTrace() Process p = rt.exec('kinit -k -t ' + keytab + ' ' + principal) As long as you have a valid ticket using which you can instantiate beeline and run queries, here is how I would do it. When you say, you have a valid ticket, for which principal do you have the ticket for? Is it hive.keytab? When you write your JDBC program for hive which goes against Kerberized cluster, there are couple of ways you can do it. There are two ways to do this depending on your criteria.