0
0

More than 1 year has passed since last update.

SageMakerでファイルを保存するときPermission Deniedになる

Posted at

はじめに

この記事は2022年2月にまとめていた「細かいつまずいたことをメモしておく(2月編)をそれぞれ投稿した内容になります
解決方法が最新でない可能性もありますのでご了承ください

問題

SageMakerでCSVファイルをPandasで出力する以下のコードで権限エラーが発生した

try:
    os.makedirs('/opt/ml/processing/output/data')
except:
    pass
df_processing.to_csv('/opt/ml/processing/output/data/df_processing.csv')

解決方法

原因はコンテナのユーザーがrootになっていることだった
ユーザーを変更することで解決した

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0