Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5E73E172B6 for ; Tue, 23 Jun 2015 03:12:17 +0000 (UTC) Received: (qmail 34770 invoked by uid 500); 23 Jun 2015 03:12:17 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 34749 invoked by uid 500); 23 Jun 2015 03:12:17 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 34739 invoked by uid 99); 23 Jun 2015 03:12:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jun 2015 03:12:17 +0000 Date: Tue, 23 Jun 2015 03:12:17 +0000 (UTC) From: =?utf-8?Q?=E9=99=88=E5=85=B8=E8=B4=B5_=28JIRA=29?= To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-5457) Concurrent calls to getTable() result in: MetaException: org.datanucleus.exceptions.NucleusException: Invalid index 1 for DataStoreMapping. NucleusException: Invalid index 1 for DataStoreMapping MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-5457?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D14597= 082#comment-14597082 ]=20 =E9=99=88=E5=85=B8=E8=B4=B5 commented on HIVE-5457: --------------------------- hi! Did you resolve this problem? It happend when we use hue to execute hql= . And we set datanucleus.autoStartMechanism=3D SchemaTabler refered in fixe= d 4762,but it helpless. > Concurrent calls to getTable() result in: MetaException: org.datanucleus.= exceptions.NucleusException: Invalid index 1 for DataStoreMapping. Nucleus= Exception: Invalid index 1 for DataStoreMapping > -------------------------------------------------------------------------= ---------------------------------------------------------------------------= ----------------------------------------------- > > Key: HIVE-5457 > URL: https://issues.apache.org/jira/browse/HIVE-5457 > Project: Hive > Issue Type: Bug > Components: Metastore > Affects Versions: 0.10.0 > Reporter: Lenni Kuff > Priority: Critical > > Concurrent calls to getTable() result in: MetaException: org.datanucleus.= exceptions.NucleusException: Invalid index 1 for DataStoreMapping. Nucleus= Exception: Invalid index 1 for DataStoreMapping > This happens when using a Hive Metastore Service directly connecting to t= he backend metastore db. I have been able to hit this with as few as 2 conc= urrent calls. When I update my app to serialize all calls to getTable() th= is problem is resolved.=20 > Stack Trace: > {code} > Caused by: org.datanucleus.exceptions.NucleusException: Invalid index 1 f= or DataStoreMapping. > at org.datanucleus.store.mapped.mapping.PersistableMapping.getDat= astoreMapping(PersistableMapping.java:307) > at org.datanucleus.store.rdbms.scostore.RDBMSElementContainerStor= eSpecialization.getSizeStmt(RDBMSElementContainerStoreSpecialization.java:4= 07) > at org.datanucleus.store.rdbms.scostore.RDBMSElementContainerStor= eSpecialization.getSize(RDBMSElementContainerStoreSpecialization.java:257) > at org.datanucleus.store.rdbms.scostore.RDBMSJoinListStoreSpecial= ization.getSize(RDBMSJoinListStoreSpecialization.java:46) > at org.datanucleus.store.mapped.scostore.ElementContainerStore.si= ze(ElementContainerStore.java:440) > at org.datanucleus.sco.backed.List.size(List.java:557)=20 > at org.apache.hadoop.hive.metastore.ObjectStore.convertToSkewedVa= lues(ObjectStore.java:1029) > at org.apache.hadoop.hive.metastore.ObjectStore.convertToStorageD= escriptor(ObjectStore.java:1007) > at org.apache.hadoop.hive.metastore.ObjectStore.convertToStorageD= escriptor(ObjectStore.java:1017) > at org.apache.hadoop.hive.metastore.ObjectStore.convertToTable(Ob= jectStore.java:872) > at org.apache.hadoop.hive.metastore.ObjectStore.getTable(ObjectSt= ore.java:743) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess= orImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth= odAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.hadoop.hive.metastore.RetryingRawStore.invoke(Retry= ingRawStore.java:111) > at $Proxy6.getTable(Unknown Source) > at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.get_= table(HiveMetaStore.java:1349) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)