cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

databricks cli error : command >> databricks fs ls # getting error Error: accepts 1 arg(s), received

therealDE
New Contributor II

Hi team, 

I installed databricks cli on my mac using homebrew, below is the link

https://docs.databricks.com/en/dev-tools/cli/install.html#homebrew-install

step1:

ran >> databricks configure , configured successfully.

however, when I ran I am getting below error.

 

databricks -v

Databricks CLI v0.212.1

 

command: databricks fs ls      

Error: accepts 1 arg(s), received 0

 

can some one please help me out what could be the error

 

3 REPLIES 3

Shima
New Contributor II

The result for databricks -v is correct and shows you've installed CLI correctly. the fs ls command need a  DIR_PATH which is a directory of the folder you're trying to get the list of files from.

therealDE
New Contributor II

Thanks for the reply, when I install databricks cli in my windows, it was actually returning some directories even with databricks fs ls.

I installed in windows with pip. You think pip install different t from brew install in mac

Shima
New Contributor II

I don't think. The format of ls cmd is "databricks fs ls DIR_PATH [flags]". If you try the  databricks fs ls -h, it shows you the info related to fs ls command.

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