Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
Actually I am looking how to use magic commands in same way as dbutils . For Instance
dbutils.fs.head('dbfs:/FileStore/<<name>>.csv',10) Gives 10 bytes I am looking for magic command like how to give second parameter %fs head dbfs:/FileStore/hotel_data.csv 10(If we give upto 10) it works but when we pass second one like 10 it will not give output like 10 bytes as above
Ok Actually I am looking how to use magic commands in same way as dbutils . For Instance
dbutils.fs.head('dbfs:/FileStore/<<name>>.csv',10) Gives 10 bytes I am looking for magic command like how to give second parameter %fs head dbfs:/FileStore/hotel_data.csv 10(If we give upto 10) it works but when we pass second one like 10 it will not give output like 10 bytes as above
You need to check for the correct path before, I currently don't know where dbfs folders are exactly mounted
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.