How to extract 7z file on azure databricks

adf575076 1 Reputation point

How to extract 7z file on azure databricks..

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
1,972 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. BhargavaGunnam-MSFT 27,661 Reputation points Microsoft Employee

    Hello @adf575076 ,

    Welcome to the MS Q&A platform.

    Please follow the below commands

    Ex: downloading the file from the URL to my tmp location

    import urllib   
    urllib.request.urlretrieve("", "/tmp/")  

    unzip using the below commnad:

    unzip /tmp/  

    You can see the file using the below command:

    %fs ls file:/databricks/driver/  


    Databricks document:


    If this answers your question, please consider accepting the answer by hitting the Accept answer button, as it helps the community.