【发布时间】:2017-10-16 16:12:16
【问题描述】:
我正在尝试在JobPerparationTask 期间挂载文件共享(不是 blob 存储)。我的节点操作系统是 Ubuntu 16.04。
为此,我正在执行以下操作:
job_user = batchmodels.AutoUserSpecification(
scope=batchmodels.AutoUserScope.pool,
elevation_level=batchmodels.ElevationLevel.admin)
start_task = batch.models.JobPreparationTask(command_line=start_commands, user_identity=batchmodels.UserIdentity(auto_user=job_user))
end_task = batch.models.JobReleaseTask(command_line=end_commands,user_identity=batchmodels.UserIdentity(auto_user=job_user))
job = batch.models.JobAddParameter(
job_id,
batch.models.PoolInformation(pool_id=pool_id),job_preparation_task=start_task, job_release_task=end_task)
我的start_commands 和end_commands 很好,但是用户权限有问题...
stderr.txt 或stdout.txt 文件中没有输出。
我没有看到任何日志(它们在哪里?)。我所能找到的只是一条显示此消息的消息:
Exit code
1
Retry count
0
Failure info
Category
UserError
Code
FailureExitCode
Message
The task exited with an exit code representing a failure
Details
Message: The task exited with an exit code representing a failure
非常详细的错误信息!
反正我也试过把AutoUserScope.oool改成AutoUserScope.task,但是没有任何变化。
有人有什么想法吗?
【问题讨论】:
标签: python ubuntu azure-batch