<?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 how to verify JournalNodes status by API or command in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-verify-JournalNodes-status-by-API-or-command/m-p/178872#M75816</link>
    <description>&lt;P&gt;from ambari GUI when we look on the &lt;A href="http://10.164.235.62:8080/#" rel="nofollow noopener noreferrer" target="_blank"&gt;JournalNodes&lt;/A&gt; status we see that &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;A href="http://10.164.235.62:8080/#" rel="nofollow noopener noreferrer" target="_blank"&gt;JournalNodes&lt;/A&gt;     &lt;/TD&gt;&lt;TD&gt;

         

3

/

3              &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;its mean all JournalNodes are alive and status is OK&lt;/P&gt;&lt;P&gt;in case one of the JN is down then we need to see like this - JournalNode 2/3 , &lt;/P&gt;&lt;P&gt;so my question is how to verify the Journal node by &lt;STRONG&gt;API or command &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Example from ambari GUI&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="64609-capture.png" style="width: 419px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19452i8029C2366B111C43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="64609-capture.png" alt="64609-capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 09:28:57 GMT</pubDate>
    <dc:creator>mike_bronson7</dc:creator>
    <dc:date>2019-08-18T09:28:57Z</dc:date>
    <item>
      <title>how to verify JournalNodes status by API or command</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-verify-JournalNodes-status-by-API-or-command/m-p/178872#M75816</link>
      <description>&lt;P&gt;from ambari GUI when we look on the &lt;A href="http://10.164.235.62:8080/#" rel="nofollow noopener noreferrer" target="_blank"&gt;JournalNodes&lt;/A&gt; status we see that &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;A href="http://10.164.235.62:8080/#" rel="nofollow noopener noreferrer" target="_blank"&gt;JournalNodes&lt;/A&gt;     &lt;/TD&gt;&lt;TD&gt;

         

3

/

3              &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;its mean all JournalNodes are alive and status is OK&lt;/P&gt;&lt;P&gt;in case one of the JN is down then we need to see like this - JournalNode 2/3 , &lt;/P&gt;&lt;P&gt;so my question is how to verify the Journal node by &lt;STRONG&gt;API or command &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Example from ambari GUI&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="64609-capture.png" style="width: 419px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19452i8029C2366B111C43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="64609-capture.png" alt="64609-capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 09:28:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-verify-JournalNodes-status-by-API-or-command/m-p/178872#M75816</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2019-08-18T09:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to verify JournalNodes status by API or command</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-verify-JournalNodes-status-by-API-or-command/m-p/178873#M75817</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In the other thread :   &lt;A href="https://community.hortonworks.com/questions/176682/api-via-script-how-to-verify-zkfailovercontroller.html?childToView=176685#answer-176685" target="_blank"&gt;https://community.hortonworks.com/questions/176682/api-via-script-how-to-verify-zkfailovercontroller.html?childToView=176685#answer-176685&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you just replace the ZKFC with JOURNALNODE then you should be able to find the same.&lt;/P&gt;&lt;PRE&gt;# curl -u admin:admin -H "X-Requested-By: ambari" -X GET "http://amb25101.example.com:8080/api/v1/clusters/plain_ambari/components?fields=ServiceComponentInfo/service_name,ServiceComponentInfo/component_name,ServiceComponentInfo/state,host_components/HostRoles/host_name,host_components/HostRoles/state" | grep -A 2 "\"component_name\" \: \"JOURNALNODE\"" |  awk '{print $NF}' &amp;gt; /tmp/requests_details.txt; sed -e '1,2d' -e s'/--//g'  -e 's/\n//g' -e 's/"//g' -e '/^$/d' /tmp/requests_details.txt | awk 'NR%3{printf "%s ",$0;next;}1'&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Example Output:&lt;/P&gt;&lt;PRE&gt;STARTED JOURNALNODE, amb25101.example.com,
STARTED JOURNALNODE, amb25102.example.com,
STARTED JOURNALNODE, amb25103.example.com,&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 18:16:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-verify-JournalNodes-status-by-API-or-command/m-p/178873#M75817</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-03-14T18:16:15Z</dc:date>
    </item>
  </channel>
</rss>

