Getting error while using databricks command in ubuntu Vm even after installing databricks-cli

Rohit Boddu 466 Reputation points
2020-10-30T10:02:21.333+00:00

Hi ,

I am working on one requirement of monitoring databricks with azure monitor. and i m using below document for this ..

https://github.com/mspnp/spark-monitoring

in one my ubuntu Vm i have completed all pre-requisites .. i also installed databricks-cli in my ubuntu vm..

" Pip3 install databricks-cli " and it got successfully installed.

but when i use "databricks configure --token" i m getting error "databricks command not found" .. please see the attched screenshot ..

36219-databricks-cli.png

please let me know if i am missing something..

from ubuntu vm i want to connect to databricks and upload few files in dbfs.

Regards,
Rohit

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,222 questions
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA 90,231 Reputation points
    2020-11-02T04:38:56.707+00:00

    Hello @Rohit Boddu ,

    You will experience this message databricks: command not found because the system is unable to find the path of the databricks installation.

    Make sure the directory used by pip3 to install databricks-cli is included in your PATH environment variable.

    For example, on my Ubuntu 18.04 system, pip3 installed the "databricks" script into the ~/.local/bin directory.

    Every time you can run this command before using databricks cmdlets: export PATH=$PATH:$HOME/.local/bin or you can include it in .bashrc file.

    36690-image.png

    Hope this helps. Do let us know if you any further queries.

    ------------

    • Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.