โ09-30-2022 03:35 PM
Hi there,
I imported the delta lake demo notebook from databricks link and at command 12 it errors out. I tired other ways and path but couldnt get past the error. May be the notebook is outdated?
Thanks
โ10-02-2022 03:55 AM
hi @AJ DJโ what is the error that you are getting?
โ10-03-2022 11:03 AM
Thanks Prabakar, i have replied with attachment below.
โ10-02-2022 11:30 AM
โ10-03-2022 11:02 AM
โ10-03-2022 01:04 PM
Sadly it seems that the %sh magic command doesn't work in the community edition (I think as it shared community servers there is no access to underlying file system)
โ10-03-2022 01:09 PM
Yes. I tried to browse dbfs files but couldnt visually see the files or the path. However when i try to read the file via python on the same path it works. So i was kind of confused. i had closed my windows. if you run python read from that temp path it works. its just for some reason cmd 12 doesnt pick it up.
โ10-03-2022 01:22 PM
i tired to by pass the demo shell script and try to write my own.. i guess i'm able to read but may be im not writing it. im missing something.
%python
import pandas as pd
url = 'https://pages.databricks.com/rs/094-YMS-629/images/SAISEU19-loan-risks.snappy.parquet'
df = pd.read_parquet(url)
df.to_parquet('/dbfs/delta/snappy.parquet')
#df.write.format('delta').mode('overwrite').save('/delta/snappy')
next cmd
SELECT * FROm parquet.'/dbfs/delta/snappy'โ
btw is there a way to share my notebook? or do we both need to be in the same organization and only then we can share notebook.
โ10-11-2022 07:06 AM
โ10-22-2022 11:11 PM
Hi @AJ DJโ
Does @Hubert Dudekโ response answer your question? If yes, would you be happy to mark it as best so that other members can find the solution more quickly?
We'd love to hear from you.
Thanks!
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