<?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: Remove Zeppelin from Ambari then Add it back in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Remove-Zeppelin-from-Ambari-then-Add-it-back/m-p/163377#M125751</link>
    <description>&lt;P&gt;
Try this&lt;/P&gt;&lt;P&gt;#curl -u admin:$PASSWORD -i -H 'X-Requested-By: ambari' -X PUT -d '{"RequestInfo": {"context" :"Stop $SERVICE via REST"}, "Body": {"ServiceInfo": {"state": "INSTALLED"}}}' &lt;A href="http://$AMBARI_HOST:8080/api/v1/clusters/$CLUSTER/services/$SERVICE" target="_blank"&gt;http://$AMBARI_HOST:8080/api/v1/clusters/$CLUSTER/services/$SERVICE&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and then Delete using the Curl.&lt;/P&gt;</description>
    <pubDate>Tue, 24 May 2016 01:21:18 GMT</pubDate>
    <dc:creator>yjagadeesan</dc:creator>
    <dc:date>2016-05-24T01:21:18Z</dc:date>
    <item>
      <title>Remove Zeppelin from Ambari then Add it back</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Remove-Zeppelin-from-Ambari-then-Add-it-back/m-p/163374#M125748</link>
      <description>&lt;P&gt;Removed all components related to Zeppelin from Ambari, and tried to reinstall again but everytime its failing with the error "Server error."&lt;/P&gt;&lt;P&gt;used this cmd to remove the service. is there something else that required cleaning up?&lt;/P&gt;&lt;P&gt;curl -u admin:admin -X DELETE -H 'X-Requested-By:1' &lt;A href="http://10.228.210.175/api/v1/clusters/HDPPOC2/services/ZEPPELIN"&gt;http://10.228.210.175:80/api/v1/clusters/HDPPOC2/services/ZEPPELIN&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 22:35:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Remove-Zeppelin-from-Ambari-then-Add-it-back/m-p/163374#M125748</guid>
      <dc:creator>khaslbeck</dc:creator>
      <dc:date>2016-05-23T22:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Zeppelin from Ambari then Add it back</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Remove-Zeppelin-from-Ambari-then-Add-it-back/m-p/163375#M125749</link>
      <description>&lt;P&gt;Did you put the service into stopped state and stop any components? List all of the service components.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 22:39:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Remove-Zeppelin-from-Ambari-then-Add-it-back/m-p/163375#M125749</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-05-23T22:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Zeppelin from Ambari then Add it back</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Remove-Zeppelin-from-Ambari-then-Add-it-back/m-p/163376#M125750</link>
      <description>&lt;P&gt;Can you post the tail of ambari-server.log? Likely an exception in there&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 22:40:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Remove-Zeppelin-from-Ambari-then-Add-it-back/m-p/163376#M125750</guid>
      <dc:creator>jeff1</dc:creator>
      <dc:date>2016-05-23T22:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Zeppelin from Ambari then Add it back</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Remove-Zeppelin-from-Ambari-then-Add-it-back/m-p/163377#M125751</link>
      <description>&lt;P&gt;
Try this&lt;/P&gt;&lt;P&gt;#curl -u admin:$PASSWORD -i -H 'X-Requested-By: ambari' -X PUT -d '{"RequestInfo": {"context" :"Stop $SERVICE via REST"}, "Body": {"ServiceInfo": {"state": "INSTALLED"}}}' &lt;A href="http://$AMBARI_HOST:8080/api/v1/clusters/$CLUSTER/services/$SERVICE" target="_blank"&gt;http://$AMBARI_HOST:8080/api/v1/clusters/$CLUSTER/services/$SERVICE&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and then Delete using the Curl.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 01:21:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Remove-Zeppelin-from-Ambari-then-Add-it-back/m-p/163377#M125751</guid>
      <dc:creator>yjagadeesan</dc:creator>
      <dc:date>2016-05-24T01:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Zeppelin from Ambari then Add it back</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Remove-Zeppelin-from-Ambari-then-Add-it-back/m-p/163378#M125752</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt;  looks like you were right, once I got a hold of the logs looks like they did not stop the service first. &lt;/P&gt;&lt;P&gt;20 May 2016 11:05:21,732  INFO [ambari-heartbeat-processor-0] HeartbeatProcessor:603 - State of service component NODEMANAGER of service YARN of cluster HDPPOC2 has changed from UNKNOWN to STARTED at host ip-10-228-210-131 according to STATUS_COMMAND report
20 May 2016 11:05:33,535 ERROR [qtp-ambari-client-41] AbstractResourceProvider:338 - Caught AmbariException when modifying a resource
org.apache.ambari.server.AmbariException: Cannot remove ZEPPELIN. Desired state STARTED is not removable.  Service must be stopped or disabled.
at org.apache.ambari.server.controller.internal.ServiceResourceProvider.deleteServices(ServiceResourceProvider.java:869)
at org.apache.ambari.server.controller.internal.ServiceResourceProvider$3.invoke(ServiceResourceProvider.java:247)
at org.apache.ambari.server.controller.internal.ServiceResourceProvider$3.invoke(ServiceResourceProvider.java:244)
at org.apache.ambari.server.controller.internal.AbstractResourceProvider.invokeWithRetry(AbstractResourceProvider.java:450)&lt;/P&gt;&lt;P&gt;20 May 2016 11:06:52,501 ERROR [qtp-ambari-client-42] AmbariJpaLocalTxnInterceptor:180 - [DETAILED ERROR] Rollback reason: 
Local Exception Stack: 
Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.6.2.v20151217-774c696): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: org.postgresql.util.PSQLException: ERROR: update or delete on table "servicecomponentdesiredstate" violates foreign key constraint "hstcmpnntdesiredstatecmpnntnme" on table "hostcomponentdesiredstate"
  Detail: Key (component_name,cluster_id,service_name)=(ZEPPELIN_MASTER,2,ZEPPELIN) is still referenced from table "hostcomponentdesiredstate".
Error Code: 0
Call: DELETE FROM servicecomponentdesiredstate WHERE (((cluster_id = ?) AND (component_name = ?)) AND (service_name = ?))
bind =&amp;gt; [3 parameters bound]
at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:340)&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2016 22:15:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Remove-Zeppelin-from-Ambari-then-Add-it-back/m-p/163378#M125752</guid>
      <dc:creator>khaslbeck</dc:creator>
      <dc:date>2016-05-25T22:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Zeppelin from Ambari then Add it back</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Remove-Zeppelin-from-Ambari-then-Add-it-back/m-p/163379#M125753</link>
      <description>&lt;P&gt;The final resolution was this:&lt;/P&gt;&lt;P&gt;Ambari was only showing a "SERVER ERROR" msg on final step with no stack trace.  After reading the log I saw there was a primary key constraint on the table  "clusterservices".  remove this row from table.  Then re-install via ambari and it was successful. My hunch is that we got into this state by first trying to remove or edit a service that was already running.  &lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2016 23:42:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Remove-Zeppelin-from-Ambari-then-Add-it-back/m-p/163379#M125753</guid>
      <dc:creator>khaslbeck</dc:creator>
      <dc:date>2016-05-25T23:42:49Z</dc:date>
    </item>
  </channel>
</rss>

