h5pyd

Hi hdf-forum

I couldn't find any previous posts on h5pyd, so this must be the first.
I'm having a few teething problems and am looking for a bit of
clarification as the tutorial docs seem a bit of a work in progress.

I have h5serv set up (using https://hub.docker.com/r/hdfgroup/h5serv/) with
a test user and am trying to use h5pyd.File to write a new file, but am
getting 403s back, which suggests I don't have authorisation.

Regardless of the 403s, can someone explain the write behaviour to me?
According to the h5serv docs, it will recognize new files and index them,
but will not recognise any updates on pre-indexed files. So am I to believe
that a file created with h5pyd will be recognised, but any group or
datasets I add after instantiating the File object, will not be indexed,
and will require a server restart?

Thanks

Nathan

Hi Nathan,

    Thanks for your interest in h5pyd!

    Yes, 403 does sound like an auth issue. Did you setup a test user/passwd as decribed here: http://h5serv.readthedocs.io/en/latest/AdminTools.html? And are you passing the username/password in the Auth header? In any case, it’s helpful to scan the log output of the container to see if there is any additional info about the nature of the failed request.

    H5serv should recognize new files as they are dropped into the server data folder. Can you point me to the doc references you mentioned? There may need to be an update here.

    One a file is indexed, any new groups or datasets that creating using the REST API (or h5pyd) will be recognized. Modifying the file directly will cause problems though. So best policy is to not touch the file after it is added to server.

   Cheers,
John

···

From: Hdf-forum <hdf-forum-bounces@lists.hdfgroup.org> on behalf of Nathan Johnson <nath.p.johnson@gmail.com>
Reply-To: HDF Users Discussion List <hdf-forum@lists.hdfgroup.org>
Date: Friday, May 19, 2017 at 6:55 AM
To: "hdf-forum@lists.hdfgroup.org" <hdf-forum@lists.hdfgroup.org>
Subject: [Hdf-forum] h5pyd

Hi hdf-forum

I couldn't find any previous posts on h5pyd, so this must be the first. I'm having a few teething problems and am looking for a bit of clarification as the tutorial docs seem a bit of a work in progress.

I have h5serv set up (using https://hub.docker.com/r/hdfgroup/h5serv/) with a test user and am trying to use h5pyd.File to write a new file, but am getting 403s back, which suggests I don't have authorisation.

Regardless of the 403s, can someone explain the write behaviour to me? According to the h5serv docs, it will recognize new files and index them, but will not recognise any updates on pre-indexed files. So am I to believe that a file created with h5pyd will be recognised, but any group or datasets I add after instantiating the File object, will not be indexed, and will require a server restart?

Thanks

Nathan