You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2020/12/02 12:26:58 UTC
[GitHub] [spark] manbuyun opened a new pull request #30572: [SPARK-33628][SQL] Use the Hive.getPartitionsByNames method instead of Hive.getPartitions in the HiveClientImpl
manbuyun opened a new pull request #30572:
URL: https://github.com/apache/spark/pull/30572
### What changes were proposed in this pull request?
When partitions are tracked by the catalog, that will compute all custom partition locations, especially when dynamic partitions, and the field staticPartitions is empty.
The poor performance of the method listPartitions results in a long period of no response at the Driver.
### Why are the changes needed?
1. Improve list metastore partitions performance, 200 times better in our production environment
### Does this PR introduce _any_ user-facing change?
no
### How was this patch tested?
This change is already covered by existing tests
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #30572: [SPARK-33628][SQL] Use the Hive.getPartitionsByNames method instead of Hive.getPartitions in the HiveClientImpl
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #30572:
URL: https://github.com/apache/spark/pull/30572#issuecomment-737650385
Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/36681/
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] manbuyun commented on pull request #30572: [SPARK-33628][SQL] Use the Hive.getPartitionsByNames method instead of Hive.getPartitions in the HiveClientImpl
Posted by GitBox <gi...@apache.org>.
manbuyun commented on pull request #30572:
URL: https://github.com/apache/spark/pull/30572#issuecomment-737226637
When read 12253 partitions, the method getPartitionsByNames takes 2 seconds, and the getPartitions takes 457 seconds, nearly 8 minutes

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #30572: [SPARK-33628][SQL] Use the Hive.getPartitionsByNames method instead of Hive.getPartitions in the HiveClientImpl
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #30572:
URL: https://github.com/apache/spark/pull/30572#issuecomment-737674842
**[Test build #132081 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/132081/testReport)** for PR 30572 at commit [`70ddbd7`](https://github.com/apache/spark/commit/70ddbd7e7ab351dd9ed107fbefea44c6cef7a299).
* This patch passes all tests.
* This patch merges cleanly.
* This patch adds no public classes.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] github-actions[bot] commented on pull request #30572: [SPARK-33628][SQL] Use the Hive.getPartitionsByNames method instead of Hive.getPartitions in the HiveClientImpl
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #30572:
URL: https://github.com/apache/spark/pull/30572#issuecomment-819255051
We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
If you'd like to revive this PR, please reopen it and ask a committer to remove the Stale tag!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #30572: [SPARK-33628][SQL] Use the Hive.getPartitionsByNames method instead of Hive.getPartitions in the HiveClientImpl
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #30572:
URL: https://github.com/apache/spark/pull/30572#issuecomment-737658946
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #30572: [SPARK-33628][SQL] Use the Hive.getPartitionsByNames method instead of Hive.getPartitions in the HiveClientImpl
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #30572:
URL: https://github.com/apache/spark/pull/30572#issuecomment-737675432
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] wangyum commented on pull request #30572: [SPARK-33628][SQL] Use the Hive.getPartitionsByNames method instead of Hive.getPartitions in the HiveClientImpl
Posted by GitBox <gi...@apache.org>.
wangyum commented on pull request #30572:
URL: https://github.com/apache/spark/pull/30572#issuecomment-737628128
ok to test.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] manbuyun edited a comment on pull request #30572: [SPARK-33628][SQL] Use the Hive.getPartitionsByNames method instead of Hive.getPartitions in the HiveClientImpl
Posted by GitBox <gi...@apache.org>.
manbuyun edited a comment on pull request #30572:
URL: https://github.com/apache/spark/pull/30572#issuecomment-737652179
And, Hive.getPartitions will cause MetaStoreClient close connection
The chain of method calls is as follows:
Hive.getPartitions -> Hive.getUserName -> SessionState.getUserFromAuthenticator -> SessionState.get().getAuthenticator -> SessionState.setupAuth -> SessionState.setAuthorizerV2Config -> Hive.get -> Hive.getInternal -> Hive.create -> Hive.close -> metaStoreClient.close


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] github-actions[bot] closed pull request #30572: [SPARK-33628][SQL] Use the Hive.getPartitionsByNames method instead of Hive.getPartitions in the HiveClientImpl
Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed pull request #30572:
URL: https://github.com/apache/spark/pull/30572
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA removed a comment on pull request #30572: [SPARK-33628][SQL] Use the Hive.getPartitionsByNames method instead of Hive.getPartitions in the HiveClientImpl
Posted by GitBox <gi...@apache.org>.
SparkQA removed a comment on pull request #30572:
URL: https://github.com/apache/spark/pull/30572#issuecomment-737638319
**[Test build #132081 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/132081/testReport)** for PR 30572 at commit [`70ddbd7`](https://github.com/apache/spark/commit/70ddbd7e7ab351dd9ed107fbefea44c6cef7a299).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #30572: [SPARK-33628][SQL] Use the Hive.getPartitionsByNames method instead of Hive.getPartitions in the HiveClientImpl
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #30572:
URL: https://github.com/apache/spark/pull/30572#issuecomment-737199560
Can one of the admins verify this patch?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #30572: [SPARK-33628][SQL] Use the Hive.getPartitionsByNames method instead of Hive.getPartitions in the HiveClientImpl
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #30572:
URL: https://github.com/apache/spark/pull/30572#issuecomment-737658933
Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/36681/
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] manbuyun edited a comment on pull request #30572: [SPARK-33628][SQL] Use the Hive.getPartitionsByNames method instead of Hive.getPartitions in the HiveClientImpl
Posted by GitBox <gi...@apache.org>.
manbuyun edited a comment on pull request #30572:
URL: https://github.com/apache/spark/pull/30572#issuecomment-737227441
Hive.getPartitions

----------
Hive.getPartitionsByNames

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] SparkQA commented on pull request #30572: [SPARK-33628][SQL] Use the Hive.getPartitionsByNames method instead of Hive.getPartitions in the HiveClientImpl
Posted by GitBox <gi...@apache.org>.
SparkQA commented on pull request #30572:
URL: https://github.com/apache/spark/pull/30572#issuecomment-737638319
**[Test build #132081 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/132081/testReport)** for PR 30572 at commit [`70ddbd7`](https://github.com/apache/spark/commit/70ddbd7e7ab351dd9ed107fbefea44c6cef7a299).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] manbuyun commented on pull request #30572: [SPARK-33628][SQL] Use the Hive.getPartitionsByNames method instead of Hive.getPartitions in the HiveClientImpl
Posted by GitBox <gi...@apache.org>.
manbuyun commented on pull request #30572:
URL: https://github.com/apache/spark/pull/30572#issuecomment-737652179
Also, Hive.getPartitions cause MetaStoreClient lost connection


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] wangyum commented on pull request #30572: [SPARK-33628][SQL] Use the Hive.getPartitionsByNames method instead of Hive.getPartitions in the HiveClientImpl
Posted by GitBox <gi...@apache.org>.
wangyum commented on pull request #30572:
URL: https://github.com/apache/spark/pull/30572#issuecomment-747344005
This change will not have authorization issue?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #30572: [SPARK-33628][SQL] Use the Hive.getPartitionsByNames method instead of Hive.getPartitions in the HiveClientImpl
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #30572:
URL: https://github.com/apache/spark/pull/30572#issuecomment-737199560
Can one of the admins verify this patch?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] manbuyun commented on pull request #30572: [SPARK-33628][SQL] Use the Hive.getPartitionsByNames method instead of Hive.getPartitions in the HiveClientImpl
Posted by GitBox <gi...@apache.org>.
manbuyun commented on pull request #30572:
URL: https://github.com/apache/spark/pull/30572#issuecomment-737227441
Hive.getPartitions

----------
Hive.getPartitionsByNames

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] manbuyun commented on pull request #30572: [SPARK-33628][SQL] Use the Hive.getPartitionsByNames method instead of Hive.getPartitions in the HiveClientImpl
Posted by GitBox <gi...@apache.org>.
manbuyun commented on pull request #30572:
URL: https://github.com/apache/spark/pull/30572#issuecomment-747297343
@wangyum Can you help me verify this patch?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #30572: [SPARK-33628][SQL] Use the Hive.getPartitionsByNames method instead of Hive.getPartitions in the HiveClientImpl
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #30572:
URL: https://github.com/apache/spark/pull/30572#issuecomment-753646192
Can one of the admins verify this patch?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins removed a comment on pull request #30572: [SPARK-33628][SQL] Use the Hive.getPartitionsByNames method instead of Hive.getPartitions in the HiveClientImpl
Posted by GitBox <gi...@apache.org>.
AmplabJenkins removed a comment on pull request #30572:
URL: https://github.com/apache/spark/pull/30572#issuecomment-737675432
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] manbuyun edited a comment on pull request #30572: [SPARK-33628][SQL] Use the Hive.getPartitionsByNames method instead of Hive.getPartitions in the HiveClientImpl
Posted by GitBox <gi...@apache.org>.
manbuyun edited a comment on pull request #30572:
URL: https://github.com/apache/spark/pull/30572#issuecomment-737652179
And, Hive.getPartitions will cause MetaStoreClient close connection.
Similar issue: https://issues.apache.org/jira/browse/SPARK-29409
The chain of method calls is as follows:
Hive.getPartitions -> Hive.getUserName -> SessionState.getUserFromAuthenticator -> SessionState.get().getAuthenticator -> SessionState.setupAuth -> SessionState.setAuthorizerV2Config -> Hive.get -> Hive.getInternal -> Hive.create -> Hive.close -> metaStoreClient.close


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] manbuyun edited a comment on pull request #30572: [SPARK-33628][SQL] Use the Hive.getPartitionsByNames method instead of Hive.getPartitions in the HiveClientImpl
Posted by GitBox <gi...@apache.org>.
manbuyun edited a comment on pull request #30572:
URL: https://github.com/apache/spark/pull/30572#issuecomment-737652179
And, Hive.getPartitions will cause MetaStoreClient close connection.
Similar issue: https://issues.apache.org/jira/browse/SPARK-29409
The chain of method calls is as follows:
Hive.getPartitions -> Hive.getUserName -> SessionState.getUserFromAuthenticator -> SessionState.get().getAuthenticator -> SessionState.setupAuth -> SessionState.setAuthorizerV2Config -> Hive.get -> Hive.getInternal -> Hive.create -> Hive.close -> metaStoreClient.close


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] manbuyun edited a comment on pull request #30572: [SPARK-33628][SQL] Use the Hive.getPartitionsByNames method instead of Hive.getPartitions in the HiveClientImpl
Posted by GitBox <gi...@apache.org>.
manbuyun edited a comment on pull request #30572:
URL: https://github.com/apache/spark/pull/30572#issuecomment-737652179
And, Hive.getPartitions will cause MetaStoreClient close connection


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] [spark] AmplabJenkins commented on pull request #30572: [SPARK-33628][SQL] Use the Hive.getPartitionsByNames method instead of Hive.getPartitions in the HiveClientImpl
Posted by GitBox <gi...@apache.org>.
AmplabJenkins commented on pull request #30572:
URL: https://github.com/apache/spark/pull/30572#issuecomment-737658946
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org