cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

PAT needed but not allowed in "Advanced Data Engineering - 6.5L Deploy pipeline with the CLI Lab"

jonxu
New Contributor III

It is stated in the lab notebook that:

Run the setup

Run the setup script for this lesson by running the cell below. This will ensure that:

  • The Databricks CLI is installed
  • Authentication is configured
  • A pipeline is created

However, when I tried to run the pipeline from web terminal, it says: "Error: cannot load Databricks config file: no configuration file found at /root/.databrickscfg; please create one first".

When I tried to install CLI and configure it, I will need personal token, which is disabled for our Databricks Academy user...

Please advise,

Jon

3 REPLIES 3

Walter_C
Databricks Employee
Databricks Employee

You can try by using the Oauth token for User to Machine, you can follow the steps in https://docs.databricks.com/en/dev-tools/cli/authentication.html#oauth-user-to-machine-u2m-authentic... 

jonxu
New Contributor III

Thanks Walter for the quick response!

When I followed the instructions, I got error message when clicking on the link generated in step 2 as:

This dbc-c50de945-b335.cloud.databricks.com page canโ€™t be found

No webpage was found for the web address: https://dbc-c50de945-b335.cloud.databricks.com/oidc/accounts/labuser8235016_1732229099@vocareum.com/...

jonxu
New Contributor III

... and if I start with step 5, using workspace-level authorisation, I ended up with "localhost refused to connect." in the generated link.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group