我在Data Lake Gen2上有一个Azure存储帐户。我想用Python(或Java)将本地数据上传到lakegen2文件系统。在
我找到了关于如何与存储帐户中的文件共享交互的examples,但是我还不能找到如何上传到Lake(而不是文件共享)。我还发现了如何为gen1lakeshere做这件事,但是除了Gen2的closedrequests什么都没有。在
我的问题是,到目前为止,Python是否可以实现这一点;或者,如何使用Java将文件上载到gen2lake?如果有一个代码片段演示上传的API调用,我们将不胜感激。在
Tags:
根据官方教程^{} ,如下所示,如果您没有注册multi-protocol access on Data Lake Storage的公共预览,则不能直接使用azurestoragesdkforpython在azuredatalakestoregen2中执行任何操作。在
因此,将数据上传到adlsgen2的唯一解决方案是使用adlsgen2的restapi,请参考它的引用^{} 。在
下面是我用Python将数据上传到adlsgen2的示例代码,它工作得很好。在
希望有帮助。在
相关问题 更多 >
编程相关推荐