[
https://issues.apache.org/jira/browse/HIVE-29865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
tanishqchugh updated HIVE-29865:
--------------------------------
Description:
With the configurations:
{code:java}
hive.security.authorization.manager=org.apache.hadoop.hive.ql.security.authorization.plugin.fallback.FallbackHiveAuthorizerFactory
hive.metastore.pre.event.listeners=org.apache.hadoop.hive.ql.security.authorization.plugin.metastore.HiveMetaStoreAuthorizer
hive.metastore.filter.hook=org.apache.hadoop.hive.ql.security.authorization.plugin.metastore.HiveMetaStoreAuthorizer
hive.metastore.client.filter.enabled=true{code}
Iceberg REST Catalog throws NPE when trying to get namespaces:
{code:java}
tanishqchugh@D7JR63VVY6 ~ % curl -s http://localhost:9001/iceberg/v1/namespaces
| jq .
{
"error": {
"message": "Cannot create a namespace with a null level",
"type": "NullPointerException",
"code": 500,
"stack": [
"java.lang.NullPointerException: Cannot create a namespace with a null
level",
"\tat
org.apache.iceberg.relocated.com.google.common.base.Preconditions.checkNotNull(Preconditions.java:974)",
"\tat org.apache.iceberg.catalog.Namespace.of(Namespace.java:45)",
"\tat
org.apache.iceberg.hive.HiveCatalog.lambda$listNamespaces$13(HiveCatalog.java:534)",
"\tat
java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)",
"\tat
java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)",
"\tat
java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)",
"\tat
java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)",
"\tat
java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)",
"\tat
java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)",
"\tat
java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)",
"\tat
org.apache.iceberg.hive.HiveCatalog.listNamespaces(HiveCatalog.java:535)",
"\tat
org.apache.iceberg.catalog.SupportsNamespaces.listNamespaces(SupportsNamespaces.java:74)",
"\tat
org.apache.iceberg.rest.CatalogHandlers.listNamespaces(CatalogHandlers.java:307)",
"\tat
org.apache.iceberg.rest.HMSCatalogAdapter.listNamespaces(HMSCatalogAdapter.java:244)",
"\tat
org.apache.iceberg.rest.HMSCatalogAdapter.handleRequest(HMSCatalogAdapter.java:446)",
"\tat
org.apache.iceberg.rest.HMSCatalogAdapter.execute(HMSCatalogAdapter.java:538)",
"\tat
org.apache.iceberg.rest.HMSCatalogServlet.service(HMSCatalogServlet.java:73)",
"\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:584)",
"\tat
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)",
"\tat
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:554)",
"\tat
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)",
"\tat
org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:772)",
"\tat
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)",
"\tat
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)",
"\tat
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440)",
"\tat
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)",
"\tat
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:505)",
"\tat
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)",
"\tat
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355)",
"\tat
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)",
"\tat
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:191)",
"\tat
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)",
"\tat org.eclipse.jetty.server.Server.handle(Server.java:516)",
"\tat
org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487)",
"\tat
org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732)",
"\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479)",
"\tat
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)",
"\tat
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)",
"\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)",
"\tat
org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)",
"\tat
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)",
"\tat
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)",
"\tat
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)",
"\tat
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:137)",
"\tat
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)",
"\tat
org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)",
"\tat java.base/java.lang.Thread.run(Thread.java:1583)"
]
}
} {code}
was:
With the configurations:
{code:java}
hive.security.authorization.manager=org.apache.hadoop.hive.ql.security.authorization.plugin.fallback.FallbackHiveAuthorizerFactory
hive.metastore.pre.event.listeners=org.apache.hadoop.hive.ql.security.authorization.plugin.metastore.HiveMetaStoreAuthorizer
hive.metastore.filter.hook=org.apache.hadoop.hive.ql.security.authorization.plugin.metastore.HiveMetaStoreAuthorizer
hive.metastore.server.filter.enabled=true
hive.metastore.client.filter.enabled=true{code}
Iceberg REST Catalog throws NPE when trying to get namespaces:
{code:java}
tanishqchugh@D7JR63VVY6 ~ % curl -s http://localhost:9001/iceberg/v1/namespaces
| jq .
{
"error": {
"message": "Cannot create a namespace with a null level",
"type": "NullPointerException",
"code": 500,
"stack": [
"java.lang.NullPointerException: Cannot create a namespace with a null
level",
"\tat
org.apache.iceberg.relocated.com.google.common.base.Preconditions.checkNotNull(Preconditions.java:974)",
"\tat org.apache.iceberg.catalog.Namespace.of(Namespace.java:45)",
"\tat
org.apache.iceberg.hive.HiveCatalog.lambda$listNamespaces$13(HiveCatalog.java:534)",
"\tat
java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)",
"\tat
java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)",
"\tat
java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)",
"\tat
java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)",
"\tat
java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)",
"\tat
java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)",
"\tat
java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)",
"\tat
org.apache.iceberg.hive.HiveCatalog.listNamespaces(HiveCatalog.java:535)",
"\tat
org.apache.iceberg.catalog.SupportsNamespaces.listNamespaces(SupportsNamespaces.java:74)",
"\tat
org.apache.iceberg.rest.CatalogHandlers.listNamespaces(CatalogHandlers.java:307)",
"\tat
org.apache.iceberg.rest.HMSCatalogAdapter.listNamespaces(HMSCatalogAdapter.java:244)",
"\tat
org.apache.iceberg.rest.HMSCatalogAdapter.handleRequest(HMSCatalogAdapter.java:446)",
"\tat
org.apache.iceberg.rest.HMSCatalogAdapter.execute(HMSCatalogAdapter.java:538)",
"\tat
org.apache.iceberg.rest.HMSCatalogServlet.service(HMSCatalogServlet.java:73)",
"\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:584)",
"\tat
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)",
"\tat
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:554)",
"\tat
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)",
"\tat
org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:772)",
"\tat
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)",
"\tat
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)",
"\tat
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440)",
"\tat
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)",
"\tat
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:505)",
"\tat
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)",
"\tat
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355)",
"\tat
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)",
"\tat
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:191)",
"\tat
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)",
"\tat org.eclipse.jetty.server.Server.handle(Server.java:516)",
"\tat
org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487)",
"\tat
org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732)",
"\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479)",
"\tat
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)",
"\tat
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)",
"\tat org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)",
"\tat
org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)",
"\tat
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)",
"\tat
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)",
"\tat
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)",
"\tat
org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:137)",
"\tat
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)",
"\tat
org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)",
"\tat java.base/java.lang.Thread.run(Thread.java:1583)"
]
}
} {code}
> Fix metastore database filter context returning null DB names
> -------------------------------------------------------------
>
> Key: HIVE-29865
> URL: https://issues.apache.org/jira/browse/HIVE-29865
> Project: Hive
> Issue Type: Bug
> Reporter: tanishqchugh
> Assignee: tanishqchugh
> Priority: Major
> Labels: pull-request-available
>
> With the configurations:
> {code:java}
> hive.security.authorization.manager=org.apache.hadoop.hive.ql.security.authorization.plugin.fallback.FallbackHiveAuthorizerFactory
> hive.metastore.pre.event.listeners=org.apache.hadoop.hive.ql.security.authorization.plugin.metastore.HiveMetaStoreAuthorizer
> hive.metastore.filter.hook=org.apache.hadoop.hive.ql.security.authorization.plugin.metastore.HiveMetaStoreAuthorizer
> hive.metastore.client.filter.enabled=true{code}
>
> Iceberg REST Catalog throws NPE when trying to get namespaces:
> {code:java}
> tanishqchugh@D7JR63VVY6 ~ % curl -s
> http://localhost:9001/iceberg/v1/namespaces | jq .
> {
> "error": {
> "message": "Cannot create a namespace with a null level",
> "type": "NullPointerException",
> "code": 500,
> "stack": [
> "java.lang.NullPointerException: Cannot create a namespace with a null
> level",
> "\tat
> org.apache.iceberg.relocated.com.google.common.base.Preconditions.checkNotNull(Preconditions.java:974)",
> "\tat org.apache.iceberg.catalog.Namespace.of(Namespace.java:45)",
> "\tat
> org.apache.iceberg.hive.HiveCatalog.lambda$listNamespaces$13(HiveCatalog.java:534)",
> "\tat
> java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)",
> "\tat
> java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1708)",
> "\tat
> java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)",
> "\tat
> java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)",
> "\tat
> java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)",
> "\tat
> java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)",
> "\tat
> java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)",
> "\tat
> org.apache.iceberg.hive.HiveCatalog.listNamespaces(HiveCatalog.java:535)",
> "\tat
> org.apache.iceberg.catalog.SupportsNamespaces.listNamespaces(SupportsNamespaces.java:74)",
> "\tat
> org.apache.iceberg.rest.CatalogHandlers.listNamespaces(CatalogHandlers.java:307)",
> "\tat
> org.apache.iceberg.rest.HMSCatalogAdapter.listNamespaces(HMSCatalogAdapter.java:244)",
> "\tat
> org.apache.iceberg.rest.HMSCatalogAdapter.handleRequest(HMSCatalogAdapter.java:446)",
> "\tat
> org.apache.iceberg.rest.HMSCatalogAdapter.execute(HMSCatalogAdapter.java:538)",
> "\tat
> org.apache.iceberg.rest.HMSCatalogServlet.service(HMSCatalogServlet.java:73)",
> "\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:584)",
> "\tat
> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)",
> "\tat
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:554)",
> "\tat
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)",
> "\tat
> org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:772)",
> "\tat
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)",
> "\tat
> org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)",
> "\tat
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440)",
> "\tat
> org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)",
> "\tat
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:505)",
> "\tat
> org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)",
> "\tat
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355)",
> "\tat
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)",
> "\tat
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:191)",
> "\tat
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)",
> "\tat org.eclipse.jetty.server.Server.handle(Server.java:516)",
> "\tat
> org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487)",
> "\tat
> org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732)",
> "\tat
> org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479)",
> "\tat
> org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)",
> "\tat
> org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)",
> "\tat
> org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)",
> "\tat
> org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)",
> "\tat
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)",
> "\tat
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)",
> "\tat
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)",
> "\tat
> org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:137)",
> "\tat
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)",
> "\tat
> org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)",
> "\tat java.base/java.lang.Thread.run(Thread.java:1583)"
> ]
> }
> } {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)