<?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 add component SPARK_JOBHISTORYSERVER to SPARK service, which already installed in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-component-SPARK-JOBHISTORYSERVER-to-SPARK-service/m-p/169475#M53986</link>
    <description>&lt;P&gt;another question: I cannot find SPARK_THRIFTSERVER in /var/lib/ambari-server/resources/common-services/SPARK/1.2.0.2.2/metainfo.xml. Why does it exists in SPARK service?&lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2017 19:09:24 GMT</pubDate>
    <dc:creator>willcup</dc:creator>
    <dc:date>2017-02-10T19:09:24Z</dc:date>
    <item>
      <title>How to add component SPARK_JOBHISTORYSERVER to SPARK service, which already installed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-component-SPARK-JOBHISTORYSERVER-to-SPARK-service/m-p/169474#M53985</link>
      <description>&lt;P&gt;My original goal is move the component to another node.&lt;/P&gt;&lt;P&gt;So I just did as Panwar said in &lt;A href="https://community.hortonworks.com/questions/4272/process-for-moving-hdp-services-manually.html.I" target="_blank"&gt;https://community.hortonworks.com/questions/4272/process-for-moving-hdp-services-manually.html.I&lt;/A&gt; did not call API in order like Panwar tips:&lt;/P&gt;&lt;PRE&gt;SPARK&amp;gt;:8080/api/v1/clusters/clustername/services/SPARK
curl -u admin:admin -H "X-Requested-By: ambari" -X PUT -d '{"RequestInfo":{"context":"Stop Component"},"Body":{"HostRoles":{"state":"INSTALLED"}}}' &lt;A href="http://:8080/api/v1/clusters/clustername/services/SPARK&amp;gt;:8080/api/v1/clusters/clustername/hosts/&amp;lt;old-host&amp;gt;/host_components/SPARK_JOBHISTORYSERVER" target="_blank"&gt;http://:8080/api/v1/clusters/clustername/services/SPARK&amp;gt;:8080/api/v1/clusters/clustername/hosts/&amp;lt;old-host&amp;gt;/host_components/SPARK_JOBHISTORYSERVER&lt;/A&gt;
curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE &lt;A href="http://:8080/api/v1/clusters/clustername/services/SPARK&amp;gt;:8080/api/v1/clusters/clustername/services/SPARK/components/SPARK_JOBHISTORYSERVER" target="_blank"&gt;http://:8080/api/v1/clusters/clustername/services/SPARK&amp;gt;:8080/api/v1/clusters/clustername/services/SPARK/components/SPARK_JOBHISTORYSERVER&lt;/A&gt; &lt;/PRE&gt;&lt;P&gt;I delete the component when it's still running:&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE &lt;A href="http://namenode01.will.com:8080/api/v1/clusters/datacenter/services/SPARK/components/SPARK_JOBHISTORYSERVER" target="_blank"&gt;http://namenode01.will.com:8080/api/v1/clusters/datacenter/services/SPARK/components/SPARK_JOBHISTORYSERVER&lt;/A&gt;
&lt;/PRE&gt;&lt;P&gt;then, the component disappeared from the stack. I cannot find it from &lt;A href="http://namenode01.will.com:8080/api/v1/clusters/datacenter/services/SPARK/components" target="_blank"&gt;http://namenode01.will.com:8080/api/v1/clusters/datacenter/services/SPARK/components&lt;/A&gt; now:&lt;/P&gt;&lt;PRE&gt;{
  "href" : "http://namenode01.will.com:8080/api/v1/clusters/datacenter/services/SPARK/components",
  "items" : [
    {
      "href" : "http://namenode01.will.com:8080/api/v1/clusters/datacenter/services/SPARK/components/SPARK_CLIENT",
      "ServiceComponentInfo" : {
        "cluster_name" : "datacenter",
        "component_name" : "SPARK_CLIENT",
        "service_name" : "SPARK"
      }
    },
    {
      "href" : "http://namenode01.will.com:8080/api/v1/clusters/datacenter/services/SPARK/components/SPARK_THRIFTSERVER",
      "ServiceComponentInfo" : {
        "cluster_name" : "datacenter",
        "component_name" : "SPARK_THRIFTSERVER",
        "service_name" : "SPARK"
      }
    }
  ]
}&lt;/PRE&gt;&lt;P&gt;It also disappeared from the UI.&lt;/P&gt;&lt;P&gt;So, anybody help me, please?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 19:01:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-component-SPARK-JOBHISTORYSERVER-to-SPARK-service/m-p/169474#M53985</guid>
      <dc:creator>willcup</dc:creator>
      <dc:date>2017-02-10T19:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to add component SPARK_JOBHISTORYSERVER to SPARK service, which already installed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-component-SPARK-JOBHISTORYSERVER-to-SPARK-service/m-p/169475#M53986</link>
      <description>&lt;P&gt;another question: I cannot find SPARK_THRIFTSERVER in /var/lib/ambari-server/resources/common-services/SPARK/1.2.0.2.2/metainfo.xml. Why does it exists in SPARK service?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 19:09:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-component-SPARK-JOBHISTORYSERVER-to-SPARK-service/m-p/169475#M53986</guid>
      <dc:creator>willcup</dc:creator>
      <dc:date>2017-02-10T19:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to add component SPARK_JOBHISTORYSERVER to SPARK service, which already installed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-component-SPARK-JOBHISTORYSERVER-to-SPARK-service/m-p/169476#M53987</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/15968/willcup.html" nodeid="15968"&gt;@will chen&lt;/A&gt;&lt;P&gt;you can add spark johistoryserver back by using ambari-web UI:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Go to the host details page. This can be done by clicking on the hosts tab and clicking on the host where you want to install spark jobhistoryserver&lt;/LI&gt;&lt;LI&gt;Click on Add button. It should show list of components that can be added to the host. &lt;/LI&gt;&lt;LI&gt;Click on spark jobhistoryserver. please see the attached image &lt;A href="https://community.cloudera.com/legacyfs/online/attachments/12277-add-component.png"&gt;add-component.png&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;If for any reason you are not able to add it from UI or you want to use ambari-server REST APIs to do so then article at &lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Adding+a+New+Service+to+an+Existing+Cluster"&gt;link&lt;/A&gt; has a section "Step 5 - Create host components"  which can be used to add host components.&lt;/P&gt;&lt;BLOCKQUOTE&gt;another question: I cannot find SPARK_THRIFTSERVER in /var/lib/ambari-server/resources/common-services/SPARK/1.2.0.2.2/metainfo.xml. Why does it exists in SPARK service?
&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thriftserver support for spark was added first in spark 1.4.1 definition in ambari (&lt;A href="https://github.com/apache/ambari/blob/release-2.4.2/ambari-server/src/main/resources/common-services/SPARK/1.4.1/metainfo.xml#L30"&gt;link&lt;/A&gt;). It will be defined at /var/lib/ambari-server/resources/common-services/SPARK/1.4.1/metainfo.xml.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 19:38:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-component-SPARK-JOBHISTORYSERVER-to-SPARK-service/m-p/169476#M53987</guid>
      <dc:creator>jaimin</dc:creator>
      <dc:date>2017-02-10T19:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to add component SPARK_JOBHISTORYSERVER to SPARK service, which already installed</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-component-SPARK-JOBHISTORYSERVER-to-SPARK-service/m-p/169477#M53988</link>
      <description>&lt;P&gt;Here are steps to move SHS from one node to another. Replace admin:admpw with your user-name:password. Run on the Ambari server, or replace localhost with your Ambari server FQDN. Replace "mycluster" with your cluster name. Replace host2.example.com with your target node FQDN.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Delete SHS component (it looks like you already did this so you can skip this step)&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;$ curl -i -H "X-Requested-By:ambari" -u admin:admpw -X DELETE &lt;A href="http://localhost:8080/api/v1/clusters/mycluster/services/SPARK/components/SPARK_JOBHISTORYSERVER" target="_blank"&gt;http://localhost:8080/api/v1/clusters/mycluster/services/SPARK/components/SPARK_JOBHISTORYSERVER&lt;/A&gt; &lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;Add SHS again &lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;$ curl -i -H "X-Requested-By:ambari" -u admin:admpw -X POST &lt;A href="http://localhost:8080/api/v1/clusters/mycluster/services/SPARK/components/SPARK_JOBHISTORYSERVER" target="_blank"&gt;http://localhost:8080/api/v1/clusters/mycluster/services/SPARK/components/SPARK_JOBHISTORYSERVER&lt;/A&gt; &lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;Install host component on the new node: host2.example.com &lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;$ curl -i -u admin:admpw -H "X-Requested-By:ambari" -i -X POST -d '{"host_components" : [{"HostRoles":{"component_name":"SPARK_JOBHISTORYSERVER"}}] }' 
  &lt;A href="http://localhost:8080/api/v1/clusters/mycluster/hosts?Hosts/host_name=host2.example.com" target="_blank"&gt;http://localhost:8080/api/v1/clusters/mycluster/hosts?Hosts/host_name=host2.example.com&lt;/A&gt; &lt;/PRE&gt;&lt;UL&gt;&lt;LI&gt;In Ambari, Hosts --&amp;gt; host2.example.com, click on Spark History Server, and then "Reinstall" button &lt;/LI&gt;&lt;LI&gt;In Ambari--&amp;gt;Spark, start Spark service, and run Spark service check&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 10 Feb 2017 21:05:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-add-component-SPARK-JOBHISTORYSERVER-to-SPARK-service/m-p/169477#M53988</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2017-02-10T21:05:45Z</dc:date>
    </item>
  </channel>
</rss>

