简体   繁体   English

将 excel 文件从 Databricks DBFS 上传到 SharePoint

[英]Upload excel file from Databricks DBFS to SharePoint

How can I upload a file from Databricks DBFS to SharePoint using the library requests or any built-in library for REST API requests?如何使用库请求或任何内置库将文件从 Databricks DBFS 上传到 SharePoint REST API 请求?

I found solutions on using Office365-REST-Python-Client but I don't want to use 3rd party libraries.我找到了有关使用Office365-REST-Python-Client 的解决方案,但我不想使用第 3 方库。

According to my research and testing, we cannot upload files directly from Databricks DBFS to SharePoint. I recommend you use the following Rest API to upload file to SharePoint:根据我的研究和测试,我们不能直接从Databricks DBFS上传文件到SharePoint。我推荐你使用下面的Rest API上传文件到SharePoint:

https://{site_url}/_api/web/lists/getbytitle('{list_title}')/rootfolder/files/add

More information for reference: Upload a file by using the REST API and jQuery更多信息供参考: 使用REST API和jQuery上传文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 Python API 将文件上传到 Databricks DBFS - Upload file to Databricks DBFS with Python API 无法将文件从 DBFS 复制到 Databricks 中的本地桌面 - Not able to copy file from DBFS to local desktop in Databricks 使用 Python API 从 Databricks DBFS 下载大文件 - Download large file from Databricks DBFS with Python API 将文件从 databricks dbfs / local 上传到 S3 存储桶。 如何使用 boto3 库或挂载 s3 将文件从 databricks 上传到 S3 存储桶? - Uploading a file from databricks dbfs / local to an S3 bucket. How do i upload a file from databricks to S3 bucket using boto3 library or mounting s3? 在dbfs(databricks文件存储)中压缩CSV为ZIP - Compress CSV to ZIP in dbfs (databricks file storage) 从 Databricks DBFS 读取多个文件 - Read multiple files from Databricks DBFS 有什么方法可以将 dbfs(databricks)路径中的 csv 文件分配给 pyspark 中的变量? - Is there any way to assign a csv file from dbfs (databricks) path to a variable in pyspark? 如何使用 dbfs 之外的 Python 文件创建 Databricks 作业? - How to create a Databricks job using a Python file outside of dbfs? 使用 databricks-connect 时在 dbfs 上打开文件 - Open file on dbfs while using databricks-connect 使用 Python 将 Excel 文件上传到 SharePoint Online - Upload excel file to SharePoint Online using Python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM