If you are already familiar with DropWizard and just need an example, examine the pom.xml and config-hive.yaml files in my example application on GitHub.
To pull in Hive JDBC and its dependencies, add to pom.xml:
<dependency>
<groupid>org.apache.hive</groupid>
<artifactid>hive-jdbc</artifactid>
<version>1.1.0</version>
<exclusions>
<exclusion>
<groupid>org.slf4j</groupid>
<artifactid>slf4j-log4j12</artifactid>
</exclusion>
<exclusion>
<groupid>com.sun.jersey</groupid>
<artifactid>*</artifactid>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupid>org.apache.hadoop</groupid>
<artifactid>hadoop-common</artifactid>
<version>2.6.0</version>
<exclusions>
<exclusion>
<groupid>org.slf4j</groupid>
<artifactid>slf4j-log4j12</artifactid>
</exclusion>
<exclusion>
<groupid>com.sun.jersey</groupid>
<artifactid>*</artifactid>
</exclusion>
</exclusions>
</dependency>
No comments:
Post a Comment