-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-21395][SQL] Spark SQL hive-thriftserver doesn't register operation log before execute sql statement #18649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…tion log before execute sql statement
|
@cloud-fan Could you please help me to review this PR? Thanks a lot! |
|
ok to test |
|
Test build #79657 has finished for PR 18649 at commit
|
|
@cloud-fan I just fix scala style issue, pls re-test again. |
|
Test build #79659 has finished for PR 18649 at commit
|
|
@cloud-fan Any suggestions? |
|
cc @jerryshao |
|
So it looks like a basic copy-paste from hive code to support this feature in STS (like what I did before to support spnego). It looks fine to me based on my limited knowledge :). |
|
@jerryshao Yes, it's just copied from SQLOperation in Hive. However, those code lines are the key point that HiveServer2 can return operation log to client via |
|
Sorry I'm not familiar with this part, I cannot give you a valid comment, you could ask others to help reviewing your patch 😄 . |
|
@gatorsmile Could you please help me to review this PR? |
|
@cloud-fan This patch is very simple and clear, is there any problem to review or merge it? |
|
I'm not familiar with this code and don't know who I should ping, cc @srowen do we have a maintainer for thrift-server? |
|
@cloud-fan @srowen If we can't find maintainer of hive-thriftserver in Spark, I may have to close this PR in few days later. |
|
CC @vanzin |
|
Really not familiar with this area of the code... |
|
cc @davies |
|
@debugger87 Hello, |
|
Thanks for your reply! If we mind the increase of opening files, we can adjust those configurations. However, in spark sql, there is no any methods or solutions to generate operation logs to provide the standard API: FetchResults with |
|
Test build #80744 has finished for PR 18649 at commit
|
|
Can one of the admins verify this patch? |
|
#19721 Fixed the same issue, i will close it. |
What changes were proposed in this pull request?
registerCurrentOperationLogin SparkExecuteStatementOperationregisterCurrentOperationLogbeforeexecute()and unregister it afterexecute()like implementation in SQLOperation.java#L204How was this patch tested?
Add unittest in HiveThriftBinaryServerSuite
HiveThriftBinaryServerSuite tests passed