Skip to content

mapr-demos/HiveJDBCExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HiveJDBCExample

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.

To build and run

  1. Clone this repo.
  2. Edit the JDBC URL in src/main/java/HiveJDBCExample.java to your liking.
  3. mvn package
  4. Use maprlogin to obtain your ticket: maprlogin password
  5. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages