Questions tagged [mssparkutils]

3 questions
0
votes
0 answers

copying db file from temp directory to Azure data lake with mssparkutils.fs.cp causes checksum error in Azure Synapse

I have a temp directory (tempfile.mkdtemp()) where I make edits to a db file using sqlite3 in an Azure Synapse notebook. When trying to copy the finished db file to mounted data lake storage like so: mssparkutils.fs.cp('file:' + dirpath +…
0
votes
1 answer

List the content of a directory mssparkutils

I used the following code to list the files in a directory but it is showing the entire path instead of just the file name: historical_logs_adls_path = ( f"abfss://{staging_container_name}@{staging_account_name}.dfs.core.windows.net/" …
Lopa
  • 51
  • 6
0
votes
1 answer

MS spark utilities - file move error using msspark.fs.mv

Am in Synapse notebook, using pyspark to move file using msspark.fs.mv(src, dest, True) Link to ms doc:…
Sreedhar
  • 29,307
  • 34
  • 118
  • 188