java.lang.IllegalArgumentException

Invalid S3 URI: hostname does not appear to be a valid S3 endpoint: s3://mybucket/tmp2

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web26618

  • Invalid S3 URI: hostname does not appear to be a valid S3 endpoint: s3://mybucket/tmp2
  • Invalid S3 URI: hostname does not appear to be a valid S3 endpoint: s3://kyu/temp/testcopy
  • Invalid hostname in URI s3:/my-bucket/test/test.txt
  • Stack trace

    • java.lang.IllegalArgumentException: Invalid S3 URI: hostname does not appear to be a valid S3 endpoint: s3://mybucket/tmp2 at com.amazonaws.services.s3.AmazonS3URI.<init>(AmazonS3URI.java:65) at com.amazonaws.services.s3.AmazonS3URI.<init>(AmazonS3URI.java:42) at com.databricks.spark.redshift.Utils$.checkThatBucketHasObjectLifecycleConfiguration(Utils.scala:72) at com.databricks.spark.redshift.RedshiftRelation.buildScan(RedshiftRelation.scala:76) at org.apache.spark.sql.execution.datasources.DataSourceStrategy$anonfun$11.apply(DataSourceStrategy.scala:336) at org.apache.spark.sql.execution.datasources.DataSourceStrategy$anonfun$11.apply(DataSourceStrategy.scala:336) at org.apache.spark.sql.execution.datasources.DataSourceStrategy$anonfun$pruneFilterProject$1.apply(DataSourceStrategy.scala:384)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago