> On 一月 6, 2017, 9:16 p.m., Aravindan Vijayan wrote: > > The hostname sent to AMS must match the hostname managed in Ambari Server. > > If we make this change in Flume sink, and the hostname is mixed case or > > upper case in Ambari Server, then the metrics not will be displayed. > > > > Did you happen to investigate why Ambari server has lower hostcase name > > while the actual hostname is in mixed/upper case? > > yao lei wrote: > Thanks for your reply. > Firstly,the hostnames of flume metrics sent by flume sink and stored in > ams hbase are actual hostnames,they are in mixed/upper/lower case. > Secondly,hostnames displayed on web client and registered in ambari > database are always lowcase. > when ambari web client want to show flume agent host level metrics ,it > will send a request to ams collector passed by a lowcase hostname by that > collector will query metrics record. > So if hostname in ams hbase is not lowcase,it will not match the passed > lowcase value
Hi Dmytro. Could you give me any suggestion when you are available? - yao ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/55173/#review160765 ----------------------------------------------------------- On 一月 5, 2017, 3:23 a.m., yao lei wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/55173/ > ----------------------------------------------------------- > > (Updated 一月 5, 2017, 3:23 a.m.) > > > Review request for Ambari, Dmytro Sen, Matt, and Myroslav Papirkovskyy. > > > Bugs: AMBARI-19357 > https://issues.apache.org/jira/browse/AMBARI-19357 > > > Repository: ambari > > > Description > ------- > > If hostname of flume agent is uppercase or mixed-case?web client will not > show flume metrics normally. > This is because we will query metric records by lowercase hostname used in > ambari ,but the hostname in METRIC_RECORD is not lowercase (see attached > picture),so we will not get any records. > This patch amis to convert hostname of metric record of flume to lowercase > before inserting into ams hbase. > > > Diffs > ----- > > > ambari-metrics/ambari-metrics-flume-sink/src/main/java/org/apache/hadoop/metrics2/sink/flume/FlumeTimelineMetricsSink.java > c1b684b > > Diff: https://reviews.apache.org/r/55173/diff/ > > > Testing > ------- > > Manually Tested > > > Thanks, > > yao lei > >
