Giter VIP home page Giter VIP logo

pydatalake-gen2's People

Contributors

estatic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pydatalake-gen2's Issues

Unable to read file

Hi,
Kudos for writing this API. The current way to access the data lake store gen-2 using blobstore api is not so good.

I am getting this error while reading a file for data lake store.
403: {"error":{"code":"AuthenticationFailed","message":"Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature

Strange part is that I am able to create and rename a file, however reading the files fails. Not sure if the Rest API itself is broken, which I think is one possibility.

Create a File

Hi!

First thanks for the development of this library. But now I want to create a file inside one folder of my filesystem. I have tried first using create_path which works fine, but then I try append and after that flush with the function update_path. But the file is still empty, what is the correct way to créate a file and add content to it?

Update_path append issues

Hey,
First of all thanks for creating this client. It saved me a lot of time writing similar one.

I want to report an error.
I am using Python 3.7.2

When calling update_path function I am getting error from Requests:

Value for header {Content-Length: 4} must be of type str or bytes, not <class 'int'>
That's what I do:
client.update_path('wmfs','test/test_file','append','test')

It is easy to figure out that change in lines 464 and 466 is needed so I changed it to:

if action == "flush":
    headers["Content-Length"] = str(0)
if action == "append":
    headers["Content-Length"] = str(len(data))

However it does not solve the issue. After I fixed it I am getting:

Exception: 400: {"error":{"code":"MissingRequiredQueryParameter","message":"A query parameter that's mandatory for this request is not specified.

I have compared request parameters to the datalake2 docs in order to find any mistakes but I can't find anything.

Have you tried calling update_path with append parameter? Was it working for you?

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.