如何使用R将空数据保存到ADLSGEN2?
我已经探索过,但没有找到任何建议。 我想知道如何使用R将空文件保存到ADLSGEN2,然后将其读回相同的代码。 感谢您的帮助。
I've explored but didn't find any suggestions.
I want to know how to save an empty file to adlsgen2 using R and then read it back to the same code.
Thanks for the help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
由于您想使用R为ADLS GEN2编写一个空文件并从该位置读取它,因此首先创建一个数据框架。
https://saketbi.wordpress.com/2019/05/11/how-to-connect-connect-to-connect-to-adls-gen2-using-sparkr-from-databricks -rstudio-while-while-while-nile-nile-nile-with-with-with-key-key-key-keke-keke-建立
https://www.geeksforgeeks.orgs.org/reading-files-files-files-files-files-files-files-files-in-in-r-r-in-r-in-r-in-in--in--in-r-r-r - 编程/
Since you want to write an empty file to ADLS gen2 using R and read it from that location, first create a dataframe.
https://saketbi.wordpress.com/2019/05/11/how-to-connect-to-adls-gen2-using-sparkr-from-databricks-rstudio-while-integrating-securely-with-azure-key-vault/
https://www.geeksforgeeks.org/reading-files-in-r-programming/
分享我的问题的解决方案:
我使用SparkR创建一个空的数据框架并在设置Spark上下文后将其保存在ADL中。
解决方案如下:
步骤1:创建一个模式
Sharing the solution to my question:
I've used SparkR to create an empty data frame and save the same in the adls after setting up the spark context.
Solution is below:
Step 1: Create a schema