aws / aws/sagemaker-python-sdk

Doesn't allow us to specify a directory path as an argument to submit_py_files parameter in spark_processor.run method

オープン
#2,447 コメント 1 件 リアクション 1 件 担当者 1 名 @nargokul が担当を希望しています GitHub で見る
component: processing contributions welcome type: bug
主要言語
Python
スター
2.3k
フォーク
1.3k
平均マージ
1日 22時間
マージ済み PR(30日)
35

説明

As per https://github.com/aws/sagemaker-python-sdk/blob/master/src/sagemaker/spark/processing.py#L76 the comments local directory paths should be allowed.

However, when we try to pass a directory path we get the following error:

`submit_deps path file:///home/ec2-user/SageMaker/code/ is not a valid local file. Please specify a list of one or more S3 URIs, local file paths, and/or local directory paths`

Most likely this spawns from the check below:

https://github.com/aws/sagemaker-python-sdk/blob/12a69180e2e88739f4fd28ed36fe88da40139f54/src/sagemaker/spark/processing.py#L441

`exists` check instead of isfile here might help resolve the issue.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。