sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lenni Kuff (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SENTRY-200) Remove sentry-provider dependencies on hive
Date Wed, 14 May 2014 22:11:47 GMT

    [ https://issues.apache.org/jira/browse/SENTRY-200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13998129#comment-13998129
] 

Lenni Kuff commented on SENTRY-200:
-----------------------------------

This is quite concerning, I am now getting back Hive Metastore DataNucleus exceptions from
the Sentry Policy Service!

{code}
14/05/14 14:55:46 INFO DataNucleus.JDO: Exception thrown
Class "org.apache.hadoop.hive.metastore.model.MTableColumnStatistics" field "org.apache.hadoop.hive.metastore.model.MTableColumnStatistics.decimalHighValue"
: declared in MetaData, but this field doesnt exist in the class!
org.datanucleus.metadata.InvalidClassMetaDataException: Class "org.apache.hadoop.hive.metastore.model.MTableColumnStatistics"
field "org.apache.hadoop.hive.metastore.model.MTableColumnStatistics.decimalHighValue" : declared
in MetaData, but this field doesnt exist in the class!
	at org.datanucleus.metadata.ClassMetaData.populateMemberMetaData(ClassMetaData.java:550)
	at org.datanucleus.metadata.ClassMetaData.populate(ClassMetaData.java:210)
	at org.datanucleus.metadata.MetaDataManager$1.run(MetaDataManager.java:2771)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.datanucleus.metadata.MetaDataManager.populateAbstractClassMetaData(MetaDataManager.java:2765)
	at org.datanucleus.metadata.MetaDataManager.populateFileMetaData(MetaDataManager.java:2588)
	at org.datanucleus.api.jdo.metadata.JDOMetaDataManager.loadXMLMetaDataForClass(JDOMetaDataManager.java:776)
	at org.datanucleus.api.jdo.metadata.JDOMetaDataManager.getMetaDataForClassInternal(JDOMetaDataManager.java:378)
	at org.datanucleus.metadata.MetaDataManager.getMetaDataForClass(MetaDataManager.java:1452)
	at org.datanucleus.ExecutionContextImpl.hasPersistenceInformationForClass(ExecutionContextImpl.java:5635)
	at org.datanucleus.store.rdbms.query.JDOQLQuery.compileInternal(JDOQLQuery.java:244)
	at org.datanucleus.store.query.Query.executeQuery(Query.java:1744)
	at org.datanucleus.store.query.Query.executeWithArray(Query.java:1672)
	at org.datanucleus.store.query.Query.execute(Query.java:1654)
	at org.datanucleus.api.jdo.JDOQuery.execute(JDOQuery.java:221)
	at org.apache.sentry.provider.db.service.persistent.SentryStore.getMSentryVersion(SentryStore.java:861)
	at org.apache.sentry.provider.db.service.persistent.SentryStore.getSentryVersion(SentryStore.java:819)
	at org.apache.sentry.provider.db.service.persistent.SentryStore.verifySentryStoreSchema(SentryStore.java:130)
	at org.apache.sentry.provider.db.service.persistent.SentryStore.<init>(SentryStore.java:119)
	at org.apache.sentry.provider.db.service.thrift.SentryPolicyStoreProcessor.<init>(SentryPolicyStoreProcessor.java:68)
	at org.apache.sentry.provider.db.service.thrift.SentryPolicyStoreProcessorFactory.register(SentryPolicyStoreProcessorFactory.java:31)
{code}

> Remove sentry-provider dependencies on hive 
> --------------------------------------------
>
>                 Key: SENTRY-200
>                 URL: https://issues.apache.org/jira/browse/SENTRY-200
>             Project: Sentry
>          Issue Type: Bug
>    Affects Versions: 1.3.0
>            Reporter: Lenni Kuff
>            Priority: Blocker
>             Fix For: 1.3.0
>
>
> sentry-provider now seems to have some dependencies on Hive. Only the binding layer should
have these dependencies. It seems some of this may have crept in as part of the SentrySchemaTool
work:
> For example:
> {code}
> sentry-provider/sentry-provider-db/pom.xml:      <artifactId>hive-metastore</artifactId>
> sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStoreSchemaInfo.java:import
org.apache.hadoop.hive.metastore.HiveMetaException;
> sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/persistent/SentryStoreSchemaInfo.java:
  * Find the directory of metastore scripts
> sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/tools/SentrySchemaTool.java:import
org.apache.hadoop.hive.metastore.api.MetaException;
> sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/tools/SentrySchemaTool.java:
   Connection metastoreConn = getConnectionToMetastore(true);
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message