Awesome
HSDS (Highly Scalable Data Service) - REST-based service for HDF5 data
Introduction
HSDS is a web service that implements a REST-based web service for HDF5 data stores. Data can be stored in either a POSIX files system, or using object-based storage such as AWS S3, Azure Blob Storage, or MinIO. HSDS can be run a single machine with or without Docker or on a cluster using Kubernetes (or AKS on Microsoft Azure).
Quick Start
With Github codespaces
Launch a Codespaces environment by clicking the banner "Open in GitHub Codespaces". Once the codespace is ready, type:
python testall.py
in the terminal window to run the test suite.
On your desktop/laptop
Make sure you have Python 3 and Pip installed, then:
- Run install:
$ ./build.sh --no-lint --no-docker
from source tree OR install from pypi:$ pip install hsds
- Create a directory the server will use to store data, example:
$ mkdir ~/hsds_data
- Start server:
$ hsds --root_dir ~/hsds_data
- Run the test suite. In a separate terminal run:
- Set user_name:
$ export USER_NAME=$USER
- Set user_password:
$ export USER_PASSWORD=$USER
- Set admin name:
$ export ADMIN_USERNAME=$USER
- Set admin password:
$ export ADMIN_PASSWORD=$USER
- Run test suite:
$ python testall.py --skip_unit
- Set user_name:
- (Optional) Install the h5pyd package for an h5py compatible api and tool suite: https://github.com/HDFGroup/h5pyd
- (Optional) Post install setup (test data, home folders, cli tools, etc): docs/post_install.md
To shut down the server, and the server is not running in Docker, just control-C.
If using docker, run: $ ./stopall.sh
Note: passwords can (and should for production use) be modified by changing values in hsds/admin/config/password.txt and rebuilding the docker image. Alternatively, an external identity provider such as Azure Active Directory or KeyCloak can be used. See: docs/azure_ad_setup.md for Azure AD setup instructions or docs/keycloak_setup.md for KeyCloak.
Detailed Install Instructions
On AWS
For complete instructions to install on a single Azure VM with Docker:
For complete instructions to install on AWS Kubernetes Service (EKS):
For complete instructions to install on AWS Lambda:
- See: docs/aws_lambda_setup.md.
On Azure
For complete instructions to install on a single Azure VM with Docker:
For complete instructions to install on Azure Kubernetes Service (AKS):
On Prem (POSIX-based storage)
For complete instructions to install on a desktop or local server:
On DCOS (BETA)
For complete instructions to install on DCOS:
General Install Topics
Setting up docker:
Post install setup and testing:
Authorization, ACLs, and Role Based Access Control (RBAC):
Writing Client Applications
As a REST service, clients be developed using almost any programming language. The test programs under: hsds/test/integ illustrate some of the methods for performing different operations using Python and HSDS REST API (using the requests package).
The related project: https://github.com/HDFGroup/h5pyd provides a (mostly) h5py-compatible interface to the server for Python clients.
For C/C++ clients, the HDF REST VOL is a HDF5 library plugin that enables the HDF5 API to read and write data using HSDS. See: https://github.com/HDFGroup/vol-rest. Note: requires v1.12.0 or greater version of the HDF5 library.
Uninstalling
HSDS only modifies the storage location that it is configured to use, so to uninstall just remove source files, Docker images, and S3 bucket/Azure Container/directory files.
Reporting bugs (and general feedback)
Create new issues at http://github.com/HDFGroup/hsds/issues for any problems you find.
For general questions/feedback, please use the HSDS forum: https://forum.hdfgroup.org/c/hsds.
License
HSDS is licensed under an APACHE 2.0 license. See LICENSE in this directory.
Azure Marketplace
VM Offer for Azure Marketplace. HSDS for Azure Marketplace provides an easy way to setup a Azure instance with HSDS. See: https://azuremarketplace.microsoft.com/en-us/marketplace/apps/thehdfgroup1616725197741.hsdsazurevm?tab=Overview for more information.
Websites
- Main website: https://www.hdfgroup.org/solutions/highly-scalable-data-service-hsds/
- Source code: https://github.com/HDFGroup/hsds
- Forum: https://forum.hdfgroup.org/c/hsds
- Documentation: http://h5serv.readthedocs.org (For REST API)
Other useful resources
HDF Group Blog Posts
- Web Caching: https://www.hdfgroup.org/2022/10/improve-hdf5-performance-using-caching/
- HSDS Streaming: https://www.hdfgroup.org/2022/08/hsds-streaming/
- Cloud Storage Options for HDF5: https://www.hdfgroup.org/2022/08/cloud-storage-options-for-hdf5/
- HSDS Docker Images: https://www.hdfgroup.org/2022/07/hsds-docker-images/
- HSDS Container Types: https://www.hdfgroup.org/2022/07/deep-dive-hsds-container-types/
- Using Multiprocessing in Python: https://www.hdfgroup.org/2022/06/speed-up-cloud-access-using-multiprocessing/
- Biosimulations - case study with HSDS and Vega: https://www.hdfgroup.org/2022/02/biosimulations-a-platform-for-sharing-and-reusing-biological-simulations/
- HSDS for Microsoft Azure: https://www.hdfgroup.org/2021/08/hsds-for-azure/
- New Features in HSDS v0.6: https://www.hdfgroup.org/2020/10/new-features-in-hsds-version-0-6/
- HSDS Security: https://hdfgroup.org/wp/2015/12/serve-protect-web-security-hdf5
- HDF for the Web: HDF Server: https://www.hdfgroup.org/2015/04/hdf5-for-the-web-hdf-server/
External Blogs and Articles
- A RESTful Meeting Between MATLAB and HDF Server: https://www.mathworks.com/matlabcentral/fileexchange/59072-a-restful-meeting-between-matlab-and-hdf-server-web-based-hdf5-access-using-matlab
- AWS Big Data Blog: https://aws.amazon.com/blogs/big-data/power-from-wind-open-data-on-aws/
Slide Decks
- HSDS v0.7 New Features, EUHUG 2022: https://www.hdfgroup.org/wp-content/uploads/2022/05/HSDS_New_Feautres_7.0.pdf
- HSDS Serverless, EUHUG 2021: https://www.hdfgroup.org/wp-content/uploads/2021/07/ServerlessHSDS.pdf
- HSDS REST, HUG 2020: https://www.hdfgroup.org/wp-content/uploads/2020/10/HSDS_Rest_Service_HDF5_Readey.pdf
- HSDS with Jupyter, ESIP 2018: https://www.slideshare.net/HDFEOS/hdf-kita-lab-jupyterlab-hdf-service
- HDF Data Services, SciPy17: http://s3.amazonaws.com/hdfgroup/docs/hdf_data_services_scipy2017.pdf
Videos
- HSDS Webinar: https://www.youtube.com/watch?v=9b5TO7drqqE
- HSDS Overview, Allotrope Connect Day: https://www.youtube.com/watch?v=nRHXEkhlfZ0
- The Use of HSDS on SlideRule, HUG 2020: https://www.youtube.com/watch?v=i-KIoGqdEMg
- HDF Data Services, SciPy 2017: https://www.youtube.com/watch?v=EmnCz1Hg-VM
- RESTful HDF, SciPy 2015: https://www.youtube.com/watch?v=JSFZ3i3WcjQ
Papers
- restfulSE: A semantically rich interface for cloud-scale genomics with Bioconductor: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6392152
- RESTful HDF5 White Paper: https://www.hdfgroup.org/pubs/papers/RESTful_HDF5.pdf