From commits-return-9673-apmail-sentry-commits-archive=sentry.apache.org@sentry.incubator.apache.org Tue Feb 2 03:22:42 2016 Return-Path: X-Original-To: apmail-sentry-commits-archive@minotaur.apache.org Delivered-To: apmail-sentry-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BE93318742 for ; Tue, 2 Feb 2016 03:22:42 +0000 (UTC) Received: (qmail 75317 invoked by uid 500); 2 Feb 2016 03:22:42 -0000 Delivered-To: apmail-sentry-commits-archive@sentry.apache.org Received: (qmail 75270 invoked by uid 500); 2 Feb 2016 03:22:42 -0000 Mailing-List: contact commits-help@sentry.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sentry.incubator.apache.org Delivered-To: mailing list commits@sentry.incubator.apache.org Received: (qmail 75261 invoked by uid 99); 2 Feb 2016 03:22:42 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2016 03:22:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 3960B180296 for ; Tue, 2 Feb 2016 03:22:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.227 X-Spam-Level: * X-Spam-Status: No, score=1.227 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.553] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 17VDhEstkvWT for ; Tue, 2 Feb 2016 03:22:41 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id 9A95342BA7 for ; Tue, 2 Feb 2016 03:22:40 +0000 (UTC) Received: (qmail 74591 invoked by uid 99); 2 Feb 2016 03:22:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2016 03:22:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EA4A72C1F5D for ; Tue, 2 Feb 2016 03:22:39 +0000 (UTC) Date: Tue, 2 Feb 2016 03:22:39 +0000 (UTC) From: "Sravya Tirukkovalur (JIRA)" To: commits@sentry.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SENTRY-1044) Tables with non-hdfs locations breaks HMS startup MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SENTRY-1044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15127580#comment-15127580 ] Sravya Tirukkovalur commented on SENTRY-1044: --------------------------------------------- Committed to master, thanks for your contribution [~qwertymaniac]! > Tables with non-hdfs locations breaks HMS startup > ------------------------------------------------- > > Key: SENTRY-1044 > URL: https://issues.apache.org/jira/browse/SENTRY-1044 > Project: Sentry > Issue Type: Bug > Components: Hdfs Plugin > Affects Versions: 1.6.0 > Reporter: Harsh J > Assignee: Harsh J > Priority: Critical > Fix For: 1.7.0 > > Attachments: SENTRY-1044.patch, SENTRY-1044.patch > > > To repro, create any table with location on s3a, file:///, etc., and enable HDFS Sync. It will cause the plugin to go into an invalid state with the below exception: > {code} > ERROR org.apache.sentry.hdfs.MetastorePlugin: [main]: #### Could not create Initial AuthzPaths or HMSHandler !! > java.lang.IllegalArgumentException: pathElements cannot be NULL > at com.google.common.base.Preconditions.checkArgument(Preconditions.java:88) > at org.apache.sentry.hdfs.HMSPaths$Entry.findPrefixEntry(HMSPaths.java:250) > at org.apache.sentry.hdfs.HMSPaths$Entry.createAuthzObjPath(HMSPaths.java:197) > at org.apache.sentry.hdfs.HMSPaths.addAuthzObject(HMSPaths.java:354) > at org.apache.sentry.hdfs.HMSPaths.addPathsToAuthzObject(HMSPaths.java:388) > at org.apache.sentry.hdfs.UpdateableAuthzPaths.applyPartialUpdate(UpdateableAuthzPaths.java:112) > at org.apache.sentry.hdfs.UpdateableAuthzPaths.updatePartial(UpdateableAuthzPaths.java:74) > at org.apache.sentry.hdfs.MetastoreCacheInitializer.createInitialUpdate(MetastoreCacheInitializer.java:245) > at org.apache.sentry.hdfs.MetastorePlugin$1.run(MetastorePlugin.java:160) > at org.apache.sentry.hdfs.MetastorePlugin.(MetastorePlugin.java:197) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:422) > at org.apache.sentry.binding.metastore.SentryMetastorePostEventListener.(SentryMetastorePostEventListener.java:78) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:422) > at org.apache.hadoop.hive.metastore.MetaStoreUtils.getMetaStoreListeners(MetaStoreUtils.java:1439) > at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.init(HiveMetaStore.java:485) > at org.apache.hadoop.hive.metastore.RetryingHMSHandler.(RetryingHMSHandler.java:78) > at org.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:84) > at org.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:5775) > at org.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:5770) > at org.apache.hadoop.hive.metastore.HiveMetaStore.startMetaStore(HiveMetaStore.java:6022) > at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:5947) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:497) > at org.apache.hadoop.util.RunJar.run(RunJar.java:221) > at org.apache.hadoop.util.RunJar.main(RunJar.java:136) > {code} > We check parsed paths for nulls before we add them to the PathsUpdate object in DbTask and PartitionTask, but this is omitted accidentally in TableTask. -- This message was sent by Atlassian JIRA (v6.3.4#6332)