You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Melchiades Blanco Junior <lu...@gmail.com> on 2011/11/16 20:56:51 UTC

Jboss and Hive

Hey there, has anyone ever used hive as a Jboss datasource?

I've created this persistence.xml

<persistence-unit name=*"bookmark-ds*" transaction-type="RESOURCE_LOCAL">
<non-jta-data-source>*java:/HiveDS*</non-jta-data-source>
<class>br.gov.frameworkdemoiselle.sample.bookmark.domain.Bookmark</class>

<properties>
<property name="hibernate.show_sql" value="true" />
<property name="hibernate.format_sql" value="false" />
<property name="hibernate.hbm2ddl.auto" value="update" />
<property name="hibernate.transaction.manager_lookup_class"
value="org.hibernate.transaction.JBossTransactionManagerLookup" />
</properties>
</persistence-unit>

and the config file HiveDS.xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<datasources>
    <local-tx-datasource>
       <jndi-name>HiveDS</jndi-name>
        <connection-url>jdbc:hive://localhost:10000/default</connection-url>
        <driver-class>org.apache.hadoop.hive.jdbc.HiveDriver</driver-class>
        <user-name></user-name>
        <password></password>
    </local-tx-datasource>
</datasources>


When I run the aplication it seems that the Hive lib doesn't have
the org.apache.hadoop.hive.metastore.api.MetaException ...
(error in the file attached)

I hope you guys help me cuz I'm stuck =(