Created 06-04-2015 07:49 PM
Created 06-04-2015 08:03 PM
Created 09-21-2015 02:11 PM
Hi
I got this error while add new host on the cluster. We had to restart the process few times because of misconfigured hostname and TLS setting on CM server.
Now after Host Instllation process finishes, CM directs me to Parcel distribution process.
However, CM runs parcel distribution process forever. When I check cloudera-scm-server.log, it was spitting out following msg indefinitely
2015-09-21 16:05:34,254 WARN 734582441@scm-web-60:com.cloudera.parcel.ClusterParcelStatus: Parcel not distributed but have active state ACTIVATING
I think CM updated status of the new host to ACTIVATING at somepoint previously failed installation attempt. Now it's confused.
How can we revert the host status and continue with parcel distribution process?
Thanks
Ben
Created 09-21-2015 03:10 PM
It looks like you have arrived in an inconsistent state of wanting the parcel to be activated, but it is not distributed, most likely because the distributed parcels were deleted outside of Cloudera Manager.
To fix this, I presume that UI is stuck in "Activating" state, but there should be a "Cancel" button, that should reset your state so that you can distribute again. If there is no way to cancel, for whatever reason, you can force deactivate the parcel via API. http://cloudera.github.io/cm_api/apidocs/v6/path__clusters_-clusterName-_parcels_products_-product-_...
Created on 09-28-2015 11:41 PM - edited 09-29-2015 12:04 AM
Hi there:
Thanks for the reply. I followed your instruction, but still failed.
I tried this:
http://master:7180/api/v10/clusters/myCluster/parcels/products/SPARK/versions/0.9.0-1.cdh4.6.0.p0.98
It worked fine and returned a JSON object.
However, the following failed with 405 Method Not Allowed HTTP response code:
http://master:7180/api/v10/clusters/myCluster/parcels/products/SPARK/versions/0.9.0-1.cdh4.6.0.p0.98/commands/deactivate
Any idea how I can fix that? Appreciate your help.
Andy
Created 09-29-2015 04:13 PM
Hi Andy,
The problem is that your browser is going to attempt an HTTP GET when the "deactivate" command requires a POST. I recommend using curl or some other tool to issue the command as a post.
for example...
curl -X POST ...
Ben
Created on 09-29-2015 05:38 PM - edited 09-29-2015 05:39 PM
Hi Ben:
Awesome. Fixed with your suggested command. Appreciate it.
curl -u username:password -X POST http://master:7180/api/v10/clusters/myCluster/parcels/products/SPARK/versions/0.9.0-1.cdh4.6.0.p0.98/commands/deactivate
Created on 11-06-2019 12:34 PM - edited 11-06-2019 12:42 PM
Sometimes, This occurs if the agent cannot write data under /opt/cloudera/parcels/.flood, if your parcel is using by the other hosts, don't deactivate parcel as first step. Check directory space and delete /opt/cloudera/parcels/.flood folder and restart the agent.