06-04-2015 08:03 PM
09-21-2015 02:11 PM
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?
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-_...
09-28-2015 11:41 PM - edited 09-29-2015 12:04 AM
Thanks for the reply. I followed your instruction, but still failed.
I tried this:
It worked fine and returned a JSON object.
However, the following failed with 405 Method Not Allowed HTTP response code:
Any idea how I can fix that? Appreciate your help.
09-29-2015 04:13 PM
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.
curl -X POST ...
09-29-2015 05:38 PM - edited 09-29-2015 05:39 PM
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