Unable to enter Databricks token from Linux/Unbuntu using Databricks Cli

441 Views Asked by At

I am trying to authenticate to various tools in Azure using Databricks Cli authentication.

I have successfully Databricks Cli using pip3 install databricks-cli. I am running databricks version 0.14.3

I have successfully generated a Databricks token dapi0a9a4xxxxxxxxxxxxxxxxxxxx

I have entere the code to configure token: databricks configure --token

I then enter the host: Host: https://xxx.azuredatabricks.net

I am then asked to enter the token generated above, this is where the problem is: Token: I CAN'T ENTER ANYTHING HERE.

Its difficult to explain but if I paste or even try to type in the token nothing happens - totally blank

This is very strange. I have looked at lots of YouTube videos on this and every video I've seen they simply enter paste the token at Token: but I can't figure out why I can't?

Any thoughts?

1

There are 1 best solutions below

3
On BEST ANSWER

It's really doesn't show anything because it's the sensitive information that shouldn't be displayed (see the hide_input option in the code). Just paste the value and press the Enter.

this option was added 7 months ago, so most probably the videos that were created before didn't shown that...

But really you don't need to run databricks configure --token - you can just create a file ~/.databrickscfg and paste necessary data (you can add more sections - they will be named profiles):

[DEFAULT]
host = https://your_host
token = dapidXXXXX