如何在Azure Service Fabric中挂载文件共享 [英] how to mount a file share in azure service fabric

查看:76
本文介绍了如何在Azure Service Fabric中挂载文件共享的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Service Fabric服务中使用标准文件API访问文件.我的应用程序从文件读取并写入存储在文件共享中的文件;每个节点处理数据的不同部分.

I need to access files using standard file API in a Service Fabric service. My application read from files and write to files that are stored in a File Share; each node process a different part of the data.

我正在使用"SetupEntryPoint"通过"net use"命令运行批处理文件,以将本地驱动器安装到我的文件共享上,但是失败(在我的本地计算机上和在Azure上都部署).我指的是文章.同一批次在常规虚拟机上运行良好,但在Fabric节点上失败.

I'm using the "SetupEntryPoint" to run a batch file with a "net use" command to mount a local drive to my file share but it fails (both on my local machine and when deployed on Azure). I'm referring to this article. The same batch runs well on a regular virtual machine but fails on a Fabric node.

我想举个例子来说明如何实现.谢谢

I would like an example of how this can be achieved. Thanks

推荐答案

我一直在使用

I've been using this project for a while to map drives in code and it works well on service fabric. You should be able to put this in your code before your file access calls.

这篇关于如何在Azure Service Fabric中挂载文件共享的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆