<?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: Add and start a new flume agent on a host without restart whole flume service in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Add-and-start-a-new-flume-agent-on-a-host-without-restart/m-p/174392#M58149</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I try it and it works fine.&lt;/P&gt;&lt;P&gt;It should be:&lt;/P&gt;&lt;P&gt;curl -u ${ambari_user_name}:${ambari_user_pass} -H "X-Requested-By: ambari"-d '{"RequestInfo":{"context":"Starting Flume agent","flume_handler":"agent","operation_level": {"level":"HOST_COMPONENT","cluster_name":"${CLUSTER_NAME}","service_name":"FLUME","host_name":"${hostname_of_new_flume_agent}"}},"Body":{"HostRoles":{"state":"STARTED"}}}'-X PUT "http://${AMBARI_HOST}:8080/api/v1/clusters/${CLUSTER_NAME}/hosts/${hostname_of_new_flume_agent}/host_components/FLUME_HANDLER"&lt;/P&gt;&lt;P&gt;And now if I want do add a new agent ,I must change the configure on the ambari web ui ,then call the ambari server api above.&lt;/P&gt;&lt;P&gt;Why not make it more easy??&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2017 13:50:31 GMT</pubDate>
    <dc:creator>darkz1984</dc:creator>
    <dc:date>2017-03-27T13:50:31Z</dc:date>
    <item>
      <title>Add and start a new flume agent on a host without restart whole flume service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Add-and-start-a-new-flume-agent-on-a-host-without-restart/m-p/174390#M58147</link>
      <description>&lt;P&gt;I use ambari and HDP.&lt;/P&gt;&lt;P&gt;Recently,I  use flume,but I found that:&lt;/P&gt;&lt;P&gt;I had add a agent on flume,and it started,when I want add a new flume agent ,the config of new flume agent not appreaed on the configure,I had to restart the whole flume service.&lt;/P&gt;&lt;P&gt;Is there a way to add and start the new flume without restart all the flume service ??&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 10:03:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Add-and-start-a-new-flume-agent-on-a-host-without-restart/m-p/174390#M58147</guid>
      <dc:creator>darkz1984</dc:creator>
      <dc:date>2017-03-27T10:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Add and start a new flume agent on a host without restart whole flume service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Add-and-start-a-new-flume-agent-on-a-host-without-restart/m-p/174391#M58148</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3653/darkz1984-1.html" nodeid="3653"&gt;@darkz yu
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;
&lt;A rel="user" href="https://community.cloudera.com/users/3653/darkz1984-1.html" nodeid="3653"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you try to start the newly added flume agent using the Ambari APIs? &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin -H "X-Requested-By: ambari" -d '{"RequestInfo":{"context":"Starting Flume agent","flume_handler":"agent","operation_level": {"level":"HOST_COMPONENT","cluster_name":"Cluster","service_name":"FLUME","host_name":"${hostname_of_new_flume_agent}"}},"Body":{"HostRoles":{"state":"STARTED"}}}' -X PUT "http://${AMBARI_HOST}:8080/api/v1/clusters/${CLUSTER_NAME}/hosts/${hostname_of_new_flume_agent}/host_components/FLUME_HANDLER"&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Please replace the values present inside the ${} according to your environment.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 10:46:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Add-and-start-a-new-flume-agent-on-a-host-without-restart/m-p/174391#M58148</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-03-27T10:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Add and start a new flume agent on a host without restart whole flume service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Add-and-start-a-new-flume-agent-on-a-host-without-restart/m-p/174392#M58149</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I try it and it works fine.&lt;/P&gt;&lt;P&gt;It should be:&lt;/P&gt;&lt;P&gt;curl -u ${ambari_user_name}:${ambari_user_pass} -H "X-Requested-By: ambari"-d '{"RequestInfo":{"context":"Starting Flume agent","flume_handler":"agent","operation_level": {"level":"HOST_COMPONENT","cluster_name":"${CLUSTER_NAME}","service_name":"FLUME","host_name":"${hostname_of_new_flume_agent}"}},"Body":{"HostRoles":{"state":"STARTED"}}}'-X PUT "http://${AMBARI_HOST}:8080/api/v1/clusters/${CLUSTER_NAME}/hosts/${hostname_of_new_flume_agent}/host_components/FLUME_HANDLER"&lt;/P&gt;&lt;P&gt;And now if I want do add a new agent ,I must change the configure on the ambari web ui ,then call the ambari server api above.&lt;/P&gt;&lt;P&gt;Why not make it more easy??&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 13:50:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Add-and-start-a-new-flume-agent-on-a-host-without-restart/m-p/174392#M58149</guid>
      <dc:creator>darkz1984</dc:creator>
      <dc:date>2017-03-27T13:50:31Z</dc:date>
    </item>
  </channel>
</rss>

