Github user wangzw commented on a diff in the pull request:
https://github.com/apache/incubator-hawq/pull/22#discussion_r42218161
--- Diff: depends/libyarn/src/libyarnclient/LibYarnClient.cpp ---
@@ -129,16 +129,16 @@ int LibYarnClient::createJob(string &jobName, string
&queue,string &jobId) {
appSubmitCtx.setUnmanagedAM(true);
appSubmitCtx.setMaxAppAttempts(1);
- appClientAlias->submitApplication(appSubmitCtx);
+ applicationClient->submitApplication(appSubmitCtx);
LOG(INFO, "LibYarnClient::createJob, submitApplication finished");
//3. wait util AM is ACCEPTED and return the AMRMToken
ApplicationReport report;
while (true) {
- report = appClientAlias->getApplicationReport(appId);
+ report = applicationClient->getApplicationReport(appId);
LOG(INFO,"LibYarnClient::createJob,
appId[cluster_timestamp:%lld,id:%d], appState:%d",
appId.getClusterTimestamp(), appId.getId(),
report.getYarnApplicationState());
- if ((report.getAMRMToken().getPassword() != "") &&
report.getYarnApplicationState() == YarnApplicationState::ACCEPTED) {
+ if ((report.getAMRMToken().getPassword() != "") &&
report.getYarnApplicationState() == YarnApplicationState::ACCEPTED) {
--- End diff --
Please do not mix space and tab. Space is preferred.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---