Unable to get s3 data - o536.ls.

KS12
New Contributor

Error while executing

display(dbutils.fs.ls(f"s3a://bucket-name/"))

bucket-name has read/list permissions

shaded.databricks.org.apache.hadoop.fs.s3a.AWSClientIOException: getFileStatus on s3a://bucket-name/ com.amazonaws.SdkClientException: Unable to execute HTTP request: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target: Unable to execute HTTP request: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

kamal_ch
Databricks Employee
Databricks Employee

To start with add SSL debugging logs by passing the JVM option -Djavax.net.debug=ssl in cluster configuration. This helps identify whether the handshake is failing due to missing certificates or invalid paths, Also check the cluster initialization scripts or global configurations to ensure no unauthorized or conflicting modifications to the SSL settings are applied