Giter Site home page Giter Site logo

Comments (3)

angel-hernandez91 avatar angel-hernandez91 commented on August 23, 2024 1

If you put another file type (e.g. parquet) in the same blob store, are you able to read it with that config set?

Yes I am. So it turns out the credentials needed to be set differently for the SAS reader since it's using the Spark Context as opposed to the Spark Session variable.

I was able to set the credentials using: sc._jsc.hadoopConfiguration().set("fs.azure.account.key.{}.blob.core.windows.net".format(account_name), account_key)

I imagine the same would work from an S3 path.

So I guess this can be marked as resolved. It would be great to add this tidbit of information regarding the credentials to the README docs.

from spark-sas7bdat.

thesuperzapper avatar thesuperzapper commented on August 23, 2024

If you put another file type (e.g. parquet) in the same blob store, are you able to read it with that config set?

from spark-sas7bdat.

Antalares avatar Antalares commented on August 23, 2024

Hi,

I'm facing the same issue.
The command "sc._jsc.hadoopConfiguration().set("fs.azure.account.key.{}.blob.core.windows.net".format(account_name), account_key)" can resolve this issue but this implies storing credential on cluster and not only for spark session.

There is a workaround byusing following command ?
spark.conf.set( "fs.azure.account.key.{}.blob.core.windows.net".format(account_name), account_key )

Thank you

from spark-sas7bdat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.