<?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 Accessing a role's hostname from SDL or control script in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-a-role-s-hostname-from-SDL-or-control-script/m-p/54515#M60752</link>
    <description>&lt;P&gt;I'm creating a CSD for a custom service with multiple roles. Some of the roles need to have knowledge of which host(s) other roles are running on, similar to how a NameNode needs to know which hosts have DataNodes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think this information should be accessible somehow after a user has chosen the role hosts in the CM UI, but I can't figure out how.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, how can I access a role's hostname from the service.sdl or control.sh files?&lt;/P&gt;</description>
    <pubDate>Mon, 08 May 2017 23:51:58 GMT</pubDate>
    <dc:creator>benbluetalon</dc:creator>
    <dc:date>2017-05-08T23:51:58Z</dc:date>
    <item>
      <title>Accessing a role's hostname from SDL or control script</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-a-role-s-hostname-from-SDL-or-control-script/m-p/54515#M60752</link>
      <description>&lt;P&gt;I'm creating a CSD for a custom service with multiple roles. Some of the roles need to have knowledge of which host(s) other roles are running on, similar to how a NameNode needs to know which hosts have DataNodes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think this information should be accessible somehow after a user has chosen the role hosts in the CM UI, but I can't figure out how.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, how can I access a role's hostname from the service.sdl or control.sh files?&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2017 23:51:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-a-role-s-hostname-from-SDL-or-control-script/m-p/54515#M60752</guid>
      <dc:creator>benbluetalon</dc:creator>
      <dc:date>2017-05-08T23:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing a role's hostname from SDL or control script</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-a-role-s-hostname-from-SDL-or-control-script/m-p/54517#M60753</link>
      <description>&lt;P&gt;Dont mistake me &amp;nbsp;I am not savy when it comes to CSD . I have few links in my desktop sleeping.&lt;/P&gt;&lt;P&gt;I believe it might come handy for you. if I understand correctly these links should gear you up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://blog.cloudera.com/blog/2014/04/how-to-extend-cloudera-manager-with-custom-service-descriptors/" target="_self"&gt;https://blog.cloudera.com/blog/2014/04/how-to-extend-cloudera-manager-with-custom-service-descriptors/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/cloudera/cm_ext/wiki" target="_self"&gt;https://github.com/cloudera/cm_ext/wiki&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/cloudera/cm_csds" target="_self"&gt;https://github.com/cloudera/cm_csds&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 00:49:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-a-role-s-hostname-from-SDL-or-control-script/m-p/54517#M60753</guid>
      <dc:creator>csguna</dc:creator>
      <dc:date>2017-05-09T00:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing a role's hostname from SDL or control script</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-a-role-s-hostname-from-SDL-or-control-script/m-p/54569#M60754</link>
      <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/16544"&gt;@csguna&lt;/a&gt;. I have seen those links before, and haven't found the answer I'm looking for yet.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 20:47:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-a-role-s-hostname-from-SDL-or-control-script/m-p/54569#M60754</guid>
      <dc:creator>benbluetalon</dc:creator>
      <dc:date>2017-05-09T20:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing a role's hostname from SDL or control script</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-a-role-s-hostname-from-SDL-or-control-script/m-p/54591#M60755</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/20184"&gt;@benbluetalon&lt;/a&gt;My bad mate.&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2017 11:06:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-a-role-s-hostname-from-SDL-or-control-script/m-p/54591#M60755</guid>
      <dc:creator>csguna</dc:creator>
      <dc:date>2017-05-10T11:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing a role's hostname from SDL or control script</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-a-role-s-hostname-from-SDL-or-control-script/m-p/54664#M60756</link>
      <description>&lt;P&gt;I've figured out a way to do this. I used peerConfigGenerators in the SDL file. Peer configs create a properties file with key/value pairs--the key/value pairs themselves weren't useful to me, but each line of the file is prepended by hostname that the chose role is running on. I then parsed that file for the hostname in the control script.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 00:13:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-a-role-s-hostname-from-SDL-or-control-script/m-p/54664#M60756</guid>
      <dc:creator>benbluetalon</dc:creator>
      <dc:date>2017-05-12T00:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing a role's hostname from SDL or control script</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-a-role-s-hostname-from-SDL-or-control-script/m-p/54665#M60757</link>
      <description>&lt;P&gt;Sounds good .&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 01:24:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Accessing-a-role-s-hostname-from-SDL-or-control-script/m-p/54665#M60757</guid>
      <dc:creator>csguna</dc:creator>
      <dc:date>2017-05-12T01:24:08Z</dc:date>
    </item>
  </channel>
</rss>

