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
專家
已審閱 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南