Not enough space to install requirements?

0

My MWAA environment will not properly initialize because the requirements install fails. There is nothing in the documentation about a download size limit and no way to override this. There is only a 'recommendation' about size because it can cause slowness in updating.

Error log:

2023-05-09T16:13:25.377-04:00 Downloading tensorflow-2.8.2-cp37-cp37m-manylinux2010_x86_64.whl (497.9 MB) 2023-05-09T16:13:27.753-04:00 ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device

1개 답변
0

Per https://github.com/pypa/pip/issues/5816#issuecomment-425410189 you may be able to use --no-cache-dir by installing via startup script, i.e.:

#!/bin/sh

if [[ "${MWAA_AIRFLOW_COMPONENT}" != "webserver" ]]
then
     # place requirements.txt in DAGs folder, and replace existing requirements.txt with an empty text file
     pip3 install --no-cache-dir -r /usr/local/airflow/dags/requirements.txt
fi

See https://docs.aws.amazon.com/mwaa/latest/userguide/using-startup-script.html#create-startup-script

You may also install the files from WHL per https://docs.aws.amazon.com/mwaa/latest/userguide/best-practices-dependencies.html#best-practices-dependencies-python-wheels

AWS
John_J
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠