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

Stack Overflow | femibyte | 2 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Obtaining Invalid S3 URI error when reading from Redshift

    Stack Overflow | 2 months ago | femibyte
    java.lang.IllegalArgumentException: Invalid S3 URI: hostname does not appear to be a valid S3 endpoint: s3://mybucket/tmp2
  2. 0

    GitHub comment 133#164792716

    GitHub | 1 year ago | pmvilaca
    java.lang.NoClassDefFoundError: Could not initialize class com.amazonaws.ClientConfiguration
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    GitHub comment 103#145481419

    GitHub | 2 years ago | nirby82
    java.lang.NoClassDefFoundError: Could not initialize class com.amazonaws.services.s3.internal.ServiceUtils
  5. 0

    IAM Role not taken into account

    GitHub | 7 months ago | borisclemencon
    java.lang.IllegalArgumentException: AWS Access Key ID and Secret Access Key must be specified as the username or password (respectively) of a s3n URL, or by setting the fs.s3n.awsAccessKeyId or fs.s3n.awsSecretAccessKey properties

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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>()
    2. AWS Java SDK for Amazon S3
      AmazonS3URI.<init>
      1. com.amazonaws.services.s3.AmazonS3URI.<init>(AmazonS3URI.java:65)
      2. com.amazonaws.services.s3.AmazonS3URI.<init>(AmazonS3URI.java:42)
      2 frames
    3. com.databricks.spark
      RedshiftRelation.buildScan
      1. com.databricks.spark.redshift.Utils$.checkThatBucketHasObjectLifecycleConfiguration(Utils.scala:72)
      2. com.databricks.spark.redshift.RedshiftRelation.buildScan(RedshiftRelation.scala:76)
      2 frames
    4. org.apache.spark
      DataSourceStrategy$anonfun$pruneFilterProject$1.apply
      1. org.apache.spark.sql.execution.datasources.DataSourceStrategy$anonfun$11.apply(DataSourceStrategy.scala:336)
      2. org.apache.spark.sql.execution.datasources.DataSourceStrategy$anonfun$11.apply(DataSourceStrategy.scala:336)
      3. org.apache.spark.sql.execution.datasources.DataSourceStrategy$anonfun$pruneFilterProject$1.apply(DataSourceStrategy.scala:384)
      3 frames