Skip to content
pratapdesai edited this page Aug 24, 2023 · 24 revisions

Q: I do not want to migrate all project data into new CML workspaces. How do I ignore/skip certain files and directories?

A: The CLI tool recognises a file named .exportignore in which you can specify the files/directories either in full or through patterns. You would have to create this file at the root of the CDSW/CML project (i.e., /home/cdsw) before running the export sub-command. The .exportignore file follows the same semantics as that of .gitgnore.

Q: How to fix the error "REMOTE HOST IDENTIFICATION HAS CHANGED!" or "HOST KEY VERIFICATION FAILED"?

A: Remove the host key entry from the file .ssh/known_hosts using command ssh-keygen -R server-hostname-or-IP. For ex: ssh-keygen -R '[localhost]:5104'

Q: How to fix the error "SSL: CERTIFICATE_VERIFY_FAILED"?

A: To resolve this error, you need to create a bundle of all root or intermediate Certification Authorities (CAs) in .pem format. Save this bundle file and provide its path (ca_path) inside the export/import-config.ini file. This will ensure that Python can locate the trusted certificate and prevent the error from occurring.

Q: How to fix the error “configparser.NoSectionError: No section: ‘sample_project’” ?

A: It means the utility cannot find a section for the “sample_project” inside export-config.ini or import-config.ini file. Add the section in the above files, section name is same as project name.

Q: How to create users/roles/groups?

A: Steps to create users/roles/groups:

  1. In the Cloudera Management Console, click on 'User Management' and utilize the 'Upload Users' link in the action menu to create users in the control plane.
Screenshot 2023-08-22 at 5 52 19 PM
  1. Select 'Groups' and click the 'Create Group' button to generate groups within the control plane. For more information on user management visit link.
  2. You can add users to the groups and assign roles at the group level. The MLAdmin or MLUser roles are necessary to access CML services. For more details on CML specific roles visit link.
  3. The above process will sync users to the CDP control plane. To sync users from the control plane to the CML workspace, click on the Run Sync Now button under the Site Administration -> Users tab.
  4. Validate all settings are migrated for the user to target CML workspace - SSH settings, Env vars..etc

Q: How to change ownership of the project?

A: Only admins can change the ownership of the project either through UI or through APIv2. To change ownership through the UI (Only applicable for Public Cloud), access Project Settings → General → Project Owner (dropdown). Once you've updated the owner, click the "Update Project" button.

Screenshot 2023-08-21 at 5 21 41 PM

To modify ownership through APIv2,

  • Via Script : Please refer the example script.

  • Via Swagger UI : Navigate to User Settings → API Keys → Swagger UI. Generate an API Key on the same page as well.

    Screenshot 2023-08-21 at 5 49 40 PM

    In the Swagger UI, begin by clicking the "Authorize" button and input the bearer API key in the format Bearer API-key. Retrieve the project ID using the API GET - /api/v2/projects. Employ the PATCH API /api/v2/projects/{project.id} to update the project owner.

    Screenshot 2023-08-21 at 6 13 45 PM

Q: How to add collaborators to the project?

A: You can add project collaborators to the target workspace either through UI or APIv2. To add collaborators through the UI, access the collaborators tab within a specific project. You can search for the user by their username or email, assign the appropriate permissions, and then click the "Add" button.

Screenshot 2023-08-22 at 3 21 27 PM

You can also use the PUT API /api​/v2​/projects​/{project_id}​/collaborators​/{username} to add collaborators to the project.

Q: How to Upgrade from older versions of CDSW to CDSW-1.10.2 (Applicable if Source is CDSW)?

A: Cloudera Data Science Workbench only supports upgrades to version n from the previous two versions (n-1 and n-2). If you are using a lower version, you must first upgrade to version n-2, or n-1 and then upgrade to version n. Hence, identify the shortest path to upgrade to CDSW 1.10.2. Refer this

If you are on older version than 1.10.2 and need to know the supported upgrade paths, please reach out to peter.ableda@cloudera.com and chrisv@cloudera.com

Clone this wiki locally