Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 01-16-2018 08:14 AM
The open source flume can start with a monitor port on, for searching flume state. In ambari, the start command is:
{flume_bin} agent --name {{0}} --conf {{1}} --conf-file {{2}}{{3}} > {flume_log_dir}/{{4}}.out 2>&1Is it possible to add a properties:
-Dflume.monitoring.type=http -D flume.monitoring.port=xxx
Created 01-16-2018 10:43 AM
Currently Ambari doesn't allow passing monitoring type and port from GUI. You have to pass it through command line.
Below is the snippet from (/var/lib/ambari-server/resources/common-services/FLUME/1.4.0.2.0/package/scripts/flume.py). You can see that monitoring type is added only when AMS is enabled.
if params.has_metric_collector:
extra_args = '-Dflume.monitoring.type=org.apache.hadoop.metrics2.sink.flume.FlumeTimelineMetricsSink ' \
'-Dflume.monitoring.node={0}:{1}'
# TODO check if this is used.
extra_args = extra_args.format(params.metric_collector_host, params.metric_collector_port)If you want to hack it, you can put the values here in the file and restart ambari server .
Thanks,
Aditya
Created 01-16-2018 08:37 AM
Created 01-16-2018 09:22 AM
Thanks.
I wander if there are any configurations to run flume agent using ambari to enable monitoring. Or this is not application scenario of ambari.
Created 01-16-2018 10:43 AM
Currently Ambari doesn't allow passing monitoring type and port from GUI. You have to pass it through command line.
Below is the snippet from (/var/lib/ambari-server/resources/common-services/FLUME/1.4.0.2.0/package/scripts/flume.py). You can see that monitoring type is added only when AMS is enabled.
if params.has_metric_collector:
extra_args = '-Dflume.monitoring.type=org.apache.hadoop.metrics2.sink.flume.FlumeTimelineMetricsSink ' \
'-Dflume.monitoring.node={0}:{1}'
# TODO check if this is used.
extra_args = extra_args.format(params.metric_collector_host, params.metric_collector_port)If you want to hack it, you can put the values here in the file and restart ambari server .
Thanks,
Aditya
Created 01-16-2018 10:54 AM
Thank you for your help.
Created 01-16-2018 11:00 AM
Glad that it helped. Can you please accept the answer by clicking "Accept" button. This will be really useful for other community users to find the answer quickly