Re: metrics do not show

2018-05-06 Thread Siddharth Wagle
My mistake, I meant : /etc/ambari-metrics-monitor/conf/metric_monitor.ini


https://cwiki.apache.org/confluence/display/AMBARI/Configuration?


- Sid


From: xiang@sky-data.cn 
Sent: Sunday, May 6, 2018 5:05 AM
To: user
Subject: Re: metrics do not show

There is no conf:
[root@dx-a ~]# less /etc/ambari-metrics/conf/metrics_grafana.ini
/etc/ambari-metrics/conf/metrics_grafana.ini: No such file or directory
[root@dx-a ~]# yum list | grep grafana
ambari-metrics-grafana.x86_64 2.6.1.0-143 @dx-ambari

I download pkgs and make my own repo including it.


From: "Siddharth Wagle" 
To: "user" 
Sent: Saturday, May 5, 2018 11:05:18 PM
Subject: Re: metrics do not show


That is the Phoenix metrics system initialization of AMS itself and is 
non-consequential for the dashboard or Grafana metrics.


Check your /etc/ambari-metrics/conf/metrics_grafana.ini is pointing to the 
collector.


- Sid



From: xiang@sky-data.cn 
Sent: Friday, May 4, 2018 11:25 PM
To: user
Subject: Re: metrics do not show

I found below wwaring:
2018-05-05 06:19:30,393 WARN org.apache.hadoop.metrics2.impl.MetricsConfig: 
Cannot locate configuration: tried 
hadoop-metrics2-phoenix.properties,hadoop-metrics2.properties


From: "Aravindan Vijayan" 
To: "user" 
Sent: Friday, May 4, 2018 9:02:46 PM
Subject: Re: metrics do not show

Hi Xiang,

If you have Grafana installed, can you check if the System-Servers and 
System-Home dashboard show data?

--
Thanks and Regards,
Aravindan Vijayan

From: "xiang@sky-data.cn" 
Reply-To: "user@ambari.apache.org" 
Date: Friday, May 4, 2018 at 12:51 AM
To: user 
Subject: metrics do not show

But i find that metrics in AMBARI-METRICS and metrics in hosts can not show.



--
??

??: +86 13382776490
: www.sky-data.cn
?? SkyDiscovery



Re: metrics can not work as expected

2018-05-06 Thread xiang . dai
I just download them and make my own repo including them. 
Then, i install them with ambari UI. 




From: "Siddharth Wagle"  
To: "user"  
Sent: Saturday, May 5, 2018 11:07:12 PM 
Subject: Re: metrics can not work as expected 



​Collector is not able to reach Zookeeper. Are you not installing AMS using 
Ambari? 





- Sid 




From: xiang@sky-data.cn  
Sent: Saturday, May 5, 2018 1:27 AM 
To: user 
Subject: metrics can not work as expected 
Hi! 

I tested installation on my vbox, it works well, then i move it to a server 
which run many services. 

When install, it failed at check service status. 

I checked ambari-metrics-collector.log and found below error: 

2018-05-05 08:16:03,536 INFO org.apache.phoenix.metrics.Metrics: Initializing 
metrics system: phoenix 
2018-05-05 08:16:03,559 WARN org.apache.hadoop.metrics2.impl.MetricsConfig: 
Cannot locate configuration: tried 
hadoop-metrics2-phoenix.properties,hadoop-metrics2.properties 
 

2018-05-05 08:18:50,342 INFO org.apache.zookeeper.ClientCnxn: Socket connection 
established to dx-1.novalocal/192.168.80.34:2188, initiating session 
2018-05-05 08:18:50,343 INFO org.apache.zookeeper.ClientCnxn: Unable to read 
additional data from server sessionid 0x0, likely server has closed socket, 
closing socket connection and attempting reconnect 
2018-05-05 08:18:50,811 INFO org.apache.zookeeper.ClientCnxn: Opening socket 
connection to server dx-2.novalocal/192.168.80.27:2188. Will not attempt to 
authenticate using SASL (unknown error) 
2018-05-05 08:18:50,812 INFO org.apache.zookeeper.ClientCnxn: Socket connection 
established to dx-2.novalocal/192.168.80.27:2188, initiating session 
2018-05-05 08:18:50,813 INFO org.apache.zookeeper.ClientCnxn: Unable to read 
additional data from server sessionid 0x0, likely server has closed socket, 
closing socket connection and attempting reconnect 
 

2018-05-05 08:18:50,947 INFO org.apache.helix.manager.zk.ZkClient: Closing 
zkclient: State:CONNECTING sessionid:0x0 local:null remoteserver:null 
lastZxid:0 xid:1 sent:35 recv:0 queuedpkts:0 pendingresp:0 queuedevents:0 
2018-05-05 08:18:50,947 INFO org.I0Itec.zkclient.ZkEventThread: Terminate 
ZkClient event thread. 
2018-05-05 08:18:51,352 INFO org.apache.zookeeper.ZooKeeper: Session: 0x0 
closed 
2018-05-05 08:18:51,352 INFO org.apache.helix.manager.zk.ZkClient: Closed 
zkclient 
2018-05-05 08:18:51,352 ERROR 
org.apache.hadoop.yarn.server.applicationhistoryservice.metrics.timeline.HBaseTimelineMetricStore:
 org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to 
zookeeper server within timeout: 3 
2018-05-05 08:18:51,354 INFO org.apache.hadoop.service.AbstractService: Service 
org.apache.hadoop.yarn.server.applicationhistoryservice.metrics.timeline.HBaseTimelineMetricStore
 failed in state INITED; cause: 
org.apache.hadoop.yarn.server.applicationhistoryservice.metrics.timeline.MetricsSystemInitializationException:
 Unable to initialize HA controller 
org.apache.hadoop.yarn.server.applicationhistoryservice.metrics.timeline.MetricsSystemInitializationException:
 Unable to initialize HA controller 
at 
org.apache.hadoop.yarn.server.applicationhistoryservice.metrics.timeline.HBaseTimelineMetricStore.initializeSubsystem(HBaseTimelineMetricStore.java:118)
 
at 
org.apache.hadoop.yarn.server.applicationhistoryservice.metrics.timeline.HBaseTimelineMetricStore.serviceInit(HBaseTimelineMetricStore.java:96)
 
. 

The 2188 port is my setting about zookeeper, and from web UI, its status is OK. 
Also i check zookeeper process, it runs as usual. 

By the way, metrics needs listen 6188 port, but i use `netstat` to check, 
related processes do not start. 

I do not know how to fix it, could someone help me? 

Thanks 


Re: metrics do not show

2018-05-06 Thread xiang . dai
There is no conf: 
[root@dx-a ~]# less /etc/ambari-metrics/conf/metrics_grafana.ini 
/etc/ambari-metrics/conf/metrics_grafana.ini: No such file or directory 
[root@dx-a ~]# yum list | grep grafana 
ambari-metrics-grafana.x86_64 2.6.1.0-143 @dx-ambari 

I download pkgs and make my own repo including it. 


From: "Siddharth Wagle"  
To: "user"  
Sent: Saturday, May 5, 2018 11:05:18 PM 
Subject: Re: metrics do not show 



That is the Phoenix metrics system initialization of AMS itself and is 
non-consequential for the dashboard or Grafana metrics. 





Check your /etc/ambari-metrics/conf/metrics_grafana.ini is pointing to the 
collector. 





- Sid 




From: xiang@sky-data.cn  
Sent: Friday, May 4, 2018 11:25 PM 
To: user 
Subject: Re: metrics do not show 
I found below wwaring: 
2018-05-05 06:19:30,393 WARN org.apache.hadoop.metrics2.impl.MetricsConfig: 
Cannot locate configuration: tried 
hadoop-metrics2-phoenix.properties,hadoop-metrics2.properties 


From: "Aravindan Vijayan"  
To: "user"  
Sent: Friday, May 4, 2018 9:02:46 PM 
Subject: Re: metrics do not show 



Hi Xiang, 



If you have Grafana installed, can you check if the System-Servers and 
System-Home dashboard show data? 




-- 


Thanks and Regards, 


Aravindan Vijayan 




From: "xiang@sky-data.cn"  
Reply-To: "user@ambari.apache.org"  
Date: Friday, May 4, 2018 at 12:51 AM 
To: user  
Subject: metrics do not show 





But i find that metrics in AMBARI-METRICS and metrics in hosts can not show. 



-- 
戴翔 
南京天数信息科技有限公司 
电话: +86 1 3382776490 
公司官网: www.sky-data.cn 
免费使用天数润科智能计算平台 SkyDiscovery 



Re: metrics do not show

2018-05-06 Thread xiang . dai
There is no conf: 
[root@dx-a ~]# less /etc/ambari-metrics/conf/metrics_grafana.ini 
/etc/ambari-metrics/conf/metrics_grafana.ini: No such file or directory 
[root@dx-a ~]# yum list | grep grafana 
ambari-metrics-grafana.x86_64 2.6.1.0-143 @dx-ambari 

I download pkgs and make my own repo including it. 


From: "Siddharth Wagle"  
To: "user"  
Sent: Saturday, May 5, 2018 11:05:18 PM 
Subject: Re: metrics do not show 



That is the Phoenix metrics system initialization of AMS itself and is 
non-consequential for the dashboard or Grafana metrics. 





Check your /etc/ambari-metrics/conf/metrics_grafana.ini is pointing to the 
collector. 





- Sid 




From: xiang@sky-data.cn  
Sent: Friday, May 4, 2018 11:25 PM 
To: user 
Subject: Re: metrics do not show 
I found below wwaring: 
2018-05-05 06:19:30,393 WARN org.apache.hadoop.metrics2.impl.MetricsConfig: 
Cannot locate configuration: tried 
hadoop-metrics2-phoenix.properties,hadoop-metrics2.properties 


From: "Aravindan Vijayan"  
To: "user"  
Sent: Friday, May 4, 2018 9:02:46 PM 
Subject: Re: metrics do not show 



Hi Xiang, 



If you have Grafana installed, can you check if the System-Servers and 
System-Home dashboard show data? 




-- 


Thanks and Regards, 


Aravindan Vijayan 




From: "xiang@sky-data.cn"  
Reply-To: "user@ambari.apache.org"  
Date: Friday, May 4, 2018 at 12:51 AM 
To: user  
Subject: metrics do not show 





But i find that metrics in AMBARI-METRICS and metrics in hosts can not show. 



-- 
戴翔 
南京天数信息科技有限公司 
电话: +86 1 3382776490 
公司官网: www.sky-data.cn 
免费使用天数润科智能计算平台 SkyDiscovery