Adding profile for each user
Edit the ~/.cde/config.yaml file in the same host where the
cde-env
tool is installed and update the profiles with the required
information. You can create multiple profiles in the ~/.cde/config.yaml
file and can be used while running commands.
For more information, see Creating and using multiple profiles.
Edit the ~/.cde/config.yaml file to add the
allow-all-spark-submit-flags: true
parameter and update the profiles.
# ~/.cde/config.yaml
allow-all-spark-submit-flags: true
credentials-file: <credentials-location>
cdp-endpoint: <CDP-endpoint>
tls-insecure:true
profiles:
- name: <Profile Name1>
vcluster-endpoint: <VC-endpoint>
- name: <Profile Name2>
vcluster-endpoint: <VC-endpoint>
Example configuration file:
# ~/.cde/config.yaml
allow-all-spark-submit-flags: true
credentials-file: /home/cdpuser1/.cde/credentials
cdp-endpoint: https://console-xhu-141.apps.shared-os-dev-01.kcloud.example.com
tls-insecure:true
profiles:
- name: vc-2
vcluster-endpoint: https://5b27g4jm.cde-x6j2nh5j.apps.apps.shared-osdev-01.kcloud.example.com/dex/api/v1/
- name: spark3-1
vcluster-endpoint: https://7j92n8q4.cde-smstx27m.apps.apps.shared-osdev-01.kcloud.example.com/dex/api/v1/