smallyao opened a new pull request, #3375:
URL: https://github.com/apache/ambari/pull/3375

   ## What changes were proposed in this pull request?
   Fix the issue that MapReduce actions menu lack service check button
   
![33b78d74f0a7ffeeb36b10fae107e4a](https://user-images.githubusercontent.com/13212217/193028134-fe4c096e-0a2f-4075-8640-860ce50c2fcc.jpg)
   
   
   The reason seems caused by 
[AMBARI-24921](https://issues.apache.org/jira/browse/AMBARI-24921).
   When access to MapReduce page, in the file app/views/main/service/item.js at 
line 162
   `service.get('installedClients')// result is null `,
   so the code
   `var hasClient = App.StackService.find(serviceName).get('hasClient') ? 
service.get('installedClients') > 0 : true;
   var serviceCheckSupported = 
App.get('services.supportsServiceCheck').contains(serviceName) && hasClient;
   `
   will make the variable serviceCheckSupported is false that lead to the 
Service Check buttion invisible
   ## How was this patch tested?
   Tested in local vm cluster.
   After applying this patch, this issue is fixed.
   As shown in following picture
   
![d2acae3b06cea294338341963d56c21](https://user-images.githubusercontent.com/13212217/193028096-57caa8d8-a77f-4cbd-8288-5c235441ac4b.jpg)
   
   
   
   Please review [Ambari Contributing 
Guide](https://cwiki.apache.org/confluence/display/AMBARI/How+to+Contribute) 
before opening a pull request.


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to