Recovering default Dataproc compute profile in Developer Edition
This document describes the steps required to recover when the default Dataproc compute profile is deleted. This scenario can happen in Developer edition when the user deletes the system preference that sets the default Dataproc profile, disable the profile, then delete the profile.
Steps
Update cdap-site property to enable updating compute profile. Follow the procedure in Updating cdap-site property.
{"options":{"profile.update.allowed": "true"}, "type": "DEVELOPER"}
After restart is complete, go the CDF instance > System Admin > Configuration > Make HTTP Calls
Change the method to PUT
Set the path to
profiles/dataproc
Set the body to
{ "name": "dataproc", "label": "Dataproc", "description": "Creates Dataproc clusters for program runs", "provisioner": { "name": "gcp-dataproc", "properties": [ { "name": "masterNumNodes", "value": "1", "isEditable": true }, { "name": "masterCPUs", "value": "1", "isEditable": true }, { "name": "masterMemoryMB", "value": "4096", "isEditable": true }, { "name": "masterDiskGB", "value": "1000", "isEditable": true }, { "name": "workerNumNodes", "value": "2", "isEditable": true }, { "name": "workerCPUs", "value": "2", "isEditable": true }, { "name": "workerMemoryMB", "value": "8192", "isEditable": true }, { "name": "workerDiskGB", "value": "1000", "isEditable": true } ] } }
Go to System Admin > Configuration > System Preferences > Edit System Preferences
Add the following key and value
Click Save & Close
Â