-
Notifications
You must be signed in to change notification settings - Fork 858
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
POC of code level optimization recommendation for Hive #618
base: tuning_20190221
Are you sure you want to change the base?
POC of code level optimization recommendation for Hive #618
Conversation
import org.codehaus.jettison.json.JSONObject; | ||
|
||
|
||
public class AzkabanJarvisCodeExtractor implements CodeExtractor { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jarvis is internal to LinkedIn. This should not go to open source ideally. Definitely the URL should be in config.
Can we modify it as a JSON code fetcher where the hierarchy of which node to fetch can be configured.
Or move this code to internal repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved URL to configuration
@@ -0,0 +1,121 @@ | |||
package com.linkedin.drelephant.analysis.code.impl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add file header here and elsewhere
@@ -331,6 +343,36 @@ public AppResult getAnalysis() throws Exception { | |||
|
|||
// Retrieve information from job configuration like scheduler information and store them into result. | |||
InfoExtractor.loadInfo(result, data); | |||
if (result.queueName.toLowerCase().equals("ump_normal") || result.queueName.toLowerCase().equals("ump_hp")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Giving out internal queue configuration. At a minimum make this configurable. Better model the conditional execution as an interface? Applies elsewhere too
@varunsaxena As mentioned in the description , this is still work in progress . Please don't review it now , as there will be considerable changes in the PR |
@varunsaxena Can u please review it |
@mkumar1984 Please review the same |
This PR is to add the code level optimization recommendation(as Heuristics) to Dr Elephant. This PR is specifically for Hive . For more details , please see the following design doc .
Design Doc
Testing
unit test cases are written and End to End testing is done on EI .