Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hive >> mail # user >> Running Hive JDBC get ClassNotFound: org.apache.hadoop.conf.Configuration


Copy link to this message
-
Re: Running Hive JDBC get ClassNotFound: org.apache.hadoop.conf.Configuration
The way the hive components are packaged they do not bring many transative
dependencies. You need to bring those in, potentially using the
<scope>provided</scope>. That stack trace shows that hadoop components are
not on the classpath.

To start you are going to need:

<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-core</artifactId>
<version>1.2.1</version>
  <scope>provided</scope>
</dependency>

An example is here.

https://github.com/edwardcapriolo/hive_test/blob/master/pom.xml
On Fri, Jun 13, 2014 at 11:49 PM, Néstor Boscán <[EMAIL PROTECTED]> wrote:
 
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB