<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: how to start flume agent with the monitor port on? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-start-flume-agent-with-the-monitor-port-on/m-p/191521#M73556</link>
    <description>&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jan 2018 18:54:08 GMT</pubDate>
    <dc:creator>tanglei_0312</dc:creator>
    <dc:date>2018-01-16T18:54:08Z</dc:date>
    <item>
      <title>how to start flume agent with the monitor port on?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-start-flume-agent-with-the-monitor-port-on/m-p/191517#M73552</link>
      <description>&lt;P&gt;The open source flume can start with a monitor port on, for searching flume state. In ambari, the start command is:&lt;/P&gt;&lt;PRE&gt;{flume_bin} agent --name {{0}} --conf {{1}} --conf-file {{2}}{{3}} &amp;gt; {flume_log_dir}/{{4}}.out 2&amp;gt;&amp;amp;1&lt;/PRE&gt;&lt;P&gt;Is it possible to add a properties:&lt;/P&gt;&lt;PRE&gt;-Dflume.monitoring.type=http -D flume.monitoring.port=xxx&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Jan 2018 16:14:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-start-flume-agent-with-the-monitor-port-on/m-p/191517#M73552</guid>
      <dc:creator>tanglei_0312</dc:creator>
      <dc:date>2018-01-16T16:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to start flume agent with the monitor port on?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-start-flume-agent-with-the-monitor-port-on/m-p/191518#M73553</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/17675/tanglei-0312.html" nodeid="17675"&gt;@Lei Tang&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Yes. You can add these properties. Check this &lt;A href="https://www.ibm.com/support/knowledgecenter/en/SSPT3X_2.1.2/com.ibm.swg.im.infosphere.biginsights.admin.doc/doc/admin_flume_enable_monitoring.html"&gt;link&lt;/A&gt; for more info&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 16:37:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-start-flume-agent-with-the-monitor-port-on/m-p/191518#M73553</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2018-01-16T16:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to start flume agent with the monitor port on?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-start-flume-agent-with-the-monitor-port-on/m-p/191519#M73554</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt; I wander if there are any configurations to run flume agent using ambari to enable monitoring. Or this is not application scenario of ambari.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 17:22:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-start-flume-agent-with-the-monitor-port-on/m-p/191519#M73554</guid>
      <dc:creator>tanglei_0312</dc:creator>
      <dc:date>2018-01-16T17:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to start flume agent with the monitor port on?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-start-flume-agent-with-the-monitor-port-on/m-p/191520#M73555</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/17675/tanglei-0312.html" nodeid="17675"&gt;@Lei Tang&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Currently Ambari doesn't allow passing monitoring type and port from GUI. You have to pass it through command line.&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;PRE&gt;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)&lt;/PRE&gt;&lt;P&gt; If you want to hack it, you can put the values here in the file and restart ambari server .&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 18:43:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-start-flume-agent-with-the-monitor-port-on/m-p/191520#M73555</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2018-01-16T18:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to start flume agent with the monitor port on?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-start-flume-agent-with-the-monitor-port-on/m-p/191521#M73556</link>
      <description>&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 18:54:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-start-flume-agent-with-the-monitor-port-on/m-p/191521#M73556</guid>
      <dc:creator>tanglei_0312</dc:creator>
      <dc:date>2018-01-16T18:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to start flume agent with the monitor port on?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-start-flume-agent-with-the-monitor-port-on/m-p/191522#M73557</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/17675/tanglei-0312.html" nodeid="17675"&gt;@Lei Tang&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 19:00:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-start-flume-agent-with-the-monitor-port-on/m-p/191522#M73557</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2018-01-16T19:00:12Z</dc:date>
    </item>
  </channel>
</rss>

