Member since
08-08-2017
1652
Posts
30
Kudos Received
11
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 2093 | 06-15-2020 05:23 AM | |
| 17437 | 01-30-2020 08:04 PM | |
| 2254 | 07-07-2019 09:06 PM | |
| 8717 | 01-27-2018 10:17 PM | |
| 4913 | 12-31-2017 10:12 PM |
09-03-2018
09:00 AM
@Jay in my case we get the following and the expected results should be only the last line ( last restart results ) curl -sH "X-Requested-By: ambari" -u admin:admin -X GET http://$server:8080/api/v1/clusters/$cluster/requests?fields=Requests/id,Requests/request_status,Requests/request_context | grep -A2 -B3 "Restart all required services" | grep 'request_status' "request_status" : "COMPLETED"
"request_status" : "COMPLETED"
"request_status" : "COMPLETED"
"request_status" : "FAILED"
"request_status" : "COMPLETED"
... View more
09-03-2018
08:11 AM
@Jay I think the following syntax is more fit for my case curl -sH "X-Requested-By: ambari" -u admin:admin -i http://$SERVER:8080/api/v1/clusters/$cluster_name/requests?fields=Requests/request_status | awk '/request_status/' | tail -1 | egrep -iq "FAILED|ABORTED" it will capture the last status , and if this fail or abort then the status is fail what you think?
... View more
09-02-2018
05:24 PM
with the following API I restart all services in ambari that required restart curl -sH "X-Requested-By: ambari" -u USER:$PASSWD -i http://$SERVER:8080/api/v1/clusters/$CLUSTER_NAME/requests?fields=Requests/request_status how to know if API succeeded to restart all services ? for example we get true in case all services restart succsfuly we get false when one or more services are failed
... View more
Labels:
08-30-2018
01:52 PM
actually we think on tool that should installed on each linux machines , like the atop , the check_mk control the OS from WIN machines , and what we want is tool that give the info from the OS itself and runs on each OS itself
... View more
08-30-2018
11:45 AM
we manage many hadoop clusters based on redhat OS ( version 7.x )
based on our experience ( many problem of low memory , disks performance , network problem , etc ) we agree that we need to install some monitoring tool
that have ability to save the monitoring at least one month history details
from the link below
https://neverendingsecurity.wordpress.com/tag/atop/ we saw a lot of monitoring tool
and we not sure what is the best tool for hadoop clusters ,
meanwhile we install the atop tool that its fine ( but take a lot of space under /var/log/atop ) **but we still thinking if this is good selecting**
... View more
Labels:
08-28-2018
12:32 PM
@Jay we run the service check but it fail on python time out , is any other idea to increase the logs ? second from where we get the - yarn-yarn-resourcemanager-.... files ? they are not written in the log4j so I not understand how they create -rw-r--r-- 1 yarn hadoop 1847 Aug 27 12:03 yarn-yarn-resourcemanager-master02.sys76.com.out.1
-rw-r--r-- 1 yarn hadoop 1052 Aug 27 12:05 yarn-yarn-resourcemanager-master02.sys76.com.log.10
-rw-r--r-- 1 yarn hadoop 1180 Aug 27 12:05 yarn-yarn-resourcemanager-master02.sys76.com.log.9
... View more
08-28-2018
10:45 AM
@Jay , second , do you think my configuration in log4j are corectly ?
... View more
08-28-2018
10:43 AM
@Jay what is the limit to set the variable - log4j.appender.NMAUDIT.MaxFileSize ? for example can we set 1MB as log4j.appender.NMAUDIT.MaxFileSize=1MB
... View more
08-28-2018
09:59 AM
hi all, we configured the Audit logging for ResourceManager , ( in YARN --> Advanced yarn-log4j ) as the following: # Audit logging for ResourceManager
rm.audit.logger=${hadoop.root.logger}
log4j.logger.org.apache.hadoop.yarn.server.resourcemanager.RMAuditLogger=${rm.audit.logger}
log4j.additivity.org.apache.hadoop.yarn.server.resourcemanager.RMAuditLogger=false
#log4j.appender.RMAUDIT=org.apache.log4j.DailyRollingFileAppender
log4j.appender.RMAUDIT.File=${yarn.log.dir}/rm-audit.log
log4j.appender.RMAUDIT.layout=org.apache.log4j.PatternLayout
log4j.appender.RMAUDIT.layout.ConversionPattern=%d{ISO8601} %p %c{2}: %m%n
#log4j.appender.RMAUDIT.DatePattern=.yyyy-MM-dd
log4j.appender.RMAUDIT=org.apache.log4j.RollingFileAppender
log4j.appender.RMAUDIT.MaxBackupIndex=5
log4j.appender.RMAUDIT.MaxFileSize=1MB
and
# Audit logging for NodeManager
nm.audit.logger=${hadoop.root.logger}
log4j.logger.org.apache.hadoop.yarn.server.nodemanager.NMAuditLogger=${nm.audit.logger}
log4j.additivity.org.apache.hadoop.yarn.server.nodemanager.NMAuditLogger=false
#log4j.appender.NMAUDIT=org.apache.log4j.DailyRollingFileAppender
log4j.appender.NMAUDIT.File=${yarn.log.dir}/nm-audit.log
log4j.appender.NMAUDIT.layout=org.apache.log4j.PatternLayout
log4j.appender.NMAUDIT.layout.ConversionPattern=%d{ISO8601} %p %c{2}: %m%n
#log4j.appender.NMAUDIT.DatePattern=.yyyy-MM-dd
log4j.appender.NMAUDIT=org.apache.log4j.RollingFileAppender
log4j.appender.NMAUDIT.MaxBackupIndex=5
log4j.appender.NMAUDIT.MaxFileSize=1MB and restart the YARN service now we want to see if rm-audit.log and nm-audit.log are rotated , but because we set 1MB in MaxFileSize it will take time until logs will be rotated -rw-r--r-- 1 yarn hadoop 4180 Aug 28 09:32 rm-audit.log is it possible to in force the logs to increase quickly to 1M and rotated as rm-audit.log.1 , and rm-audit.log.2 , etc so we can sure that our log4j configuration is correctly ?
... View more
Labels:
08-27-2018
04:50 PM
can you help me with this quastion - https://community.hortonworks.com/questions/214906/advanced-yarn-log4j-not-fit-what-we-get-in-varlogh.html
... View more