Import and Read csv using pyspark in Sagemaker Studio - JAVA_HOME is not set PySparkRuntimeError

0

I am getting java runtime error when I try to import and Read csv in S3 using pyspark in Sagemaker Studio. Can anyone help ?

https://github.com/rog-SARTHAK/AWS-Sagemaker-Studio/blob/main/Crime.ipynb

Sarthak
질문됨 7달 전311회 조회
1개 답변
0

Hi Sarthak,

Kindly use a lifecycle configuration script as detailed at - https://aws.amazon.com/blogs/machine-learning/customize-amazon-sagemaker-studio-using-lifecycle-configurations/

Sample script below for reference -

#!/bin/bash

set -e

sudo yum -y update sudo yum -y install java-1.8.0-openjdk-devel

Kindly know if this helps.

AWS
답변함 7달 전
profile picture
전문가
검토됨 한 달 전

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

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

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

관련 콘텐츠