【以下的问题经过翻译处理】 Amazon SageMaker SDK中的FileSystemInput的directory_path参数应该设置为什么值?
以下是有关我的Amazon FSx for Lustre文件系统的一些信息:
- 我的FSx ID是
fs-0684xxxxxxxxxxx
。
- 我的FSx挂载名称为
lhskdbmv
。
- FSx映射到一个Amazon S3存储桶,其中包含文件(其key中没有额外的前缀)。
我们的测试的过程和结果如下:
尝试1:
fs = FileSystemInput(
file_system_id='fs-0684xxxxxxxxxxx',
file_system_type='FSxLustre',
directory_path='lhskdbmv',
file_system_access_mode='ro')
结果:
estimator.fit(fs)
返回ClientError: An error occurred (ValidationException) when calling the CreateTrainingJob operation: FileSystem DirectoryPath 'lhskdbmv' for channel 'training' is not absolute or normalized. Please ensure you don't have a trailing "/", and/or "..", ".", "//" in the path.
尝试2:
fs = FileSystemInput(
file_system_id='fs-0684xxxxxxxxxxx',
file_system_type='FSxLustre',
directory_path='/',
file_system_access_mode='ro')
结果:
ClientError: An error occurred (ValidationException) when calling the CreateTrainingJob operation: The directory path for FSx Lustre file system fs-068406952bf758bac is invalid. The directory path must begin with mount name of the file system.
尝试3:
fs = FileSystemInput(
file_system_id='fs-0684xxxxxxxxxxx',
file_system_type='FSxLustre',
directory_path='fsx',
file_system_access_mode='ro')
结果:
ClientError: An error occurred (ValidationException) when calling the CreateTrainingJob operation: FileSystem DirectoryPath 'fsx' for channel 'training' is not absolute or normalized. Please ensure you don't have a trailing "/", and/or "..", ".", "//" in the path.