This repository contains a simple Maven project for connecting to Hive 1.0 on a secure MapR cluster in Java. We use the MapR maven repository for dependencies.
- Clone this repo.
- Edit the JDBC URL in
src/main/java/HiveJDBCExample.java
to your liking. mvn package
- Use
maprlogin
to obtain your ticket:maprlogin password
- Run:
java -cp $(hadoop classpath):/opt/mapr/hive/hive-1.0/lib/hive-jdbc-1.0.0-mapr-standalone.jar:target/HiveJDBCExample-1.0-SNAPSHOT.jar \
HiveJDBCExample