Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

234
Views
El nombre del depósito de S3 se agrega al punto final de S3

Al intentar acceder a un archivo desde un depósito de S3 mediante Scala, el nombre del depósito se agrega al frente del punto final y el punto final se vuelve incorrecto e inaccesible.

Bibliotecas:

 libraryDependencies += "org.apache.spark" % "spark-core_2.11" % "2.0.0" libraryDependencies += "org.apache.spark" % "spark-sql_2.11" % "2.0.0" libraryDependencies += "org.apache.hadoop" % "hadoop-aws" % "2.8.0"

Código:

 sc.hadoopConfiguration.set("fs.s3a.endpoint", "[endpoint]") sc.textFile("s3a://[bucket_name]/testa.txt")
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Habilitar las direcciones URL de estilo de ruta resuelve el problema, ya que no se ha realizado ninguna configuración de hosts virtuales en el servidor donde está instalado S3. fs.s3a.path.style.access ( docs ) se puede establecer en verdadero para habilitar las direcciones URL de estilo de ruta.

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!