S3 on WOS: Difference between revisions

From Lsdf
Jump to navigationJump to search
(Created page with "==S3 on WOS== The REST S3 API [http://docs.aws.amazon.com/AmazonS3/latest/API/APIRest.html] was introduced with the Amazon S3 online storage service and has now become the de-fa…")
 
Line 86: Line 86:
* CentOS, RedHat, Fedora, Suse
* CentOS, RedHat, Fedora, Suse
wget http://download.dragondisk.com/dragondisk-1.0.5-1.i686.rpm
wget http://download.dragondisk.com/dragondisk-1.0.5-1.i686.rpm
sudo yum install
sudo rpm -Uvh dragondisk-1.0.5-1.i686.rpm
sudo rpm -Uvh dragondisk-1.0.5-1.i686.rpm



Revision as of 13:36, 26 September 2014

S3 on WOS

The REST S3 API [1] was introduced with the Amazon S3 online storage service and has now become the de-facto standard for cloud storage.

WOS (Web Object Scaler) is a cloud-based storage technology offered by DDN (Data Direct Network). DDN provides a REST API compatible with the Amazon S3 API.

Required to access the cloud storage through the S3 API:

Data are stored as objects in different buckets. Every user holds a pair of access-secret keys.

S3 clients

There are several clients that can be used to access the S3 storage. Below there is a list of clients and instructions on how to set-up and use them to access the (DDN) S3 API.

s3cmd

Command line tool for Linux and Mac. [2] The Windows version is S3Express. [3]

Download and install:

wget -O- -q http://s3tools.org/repo/deb-all/stable/s3tools.key | sudo apt-key add -
sudo wget -O/etc/apt/sources.list.d/s3tools.list http://s3tools.org/repo/deb-all/stable/s3tools.list
sudo apt-get update && sudo apt-get install s3cmd
    • RedHat, CentOS & Fedora
cd /etc/yum.repos.d
wget http://s3tools.org/repo/RHEL_6/s3tools.repo (for RHEL 6 and CentOS 6.x)
yum install s3cmd 
answer yes to accept GPG key

Configure s3cmd by running:

s3cmd --configure

You will be asked to input the two keys; all other questions are optional. Then edit the file ~/.s3cfg to use the endpoint and check user keys:

access_key = <your_access_key>
secret_key = <your_secret_key>
host_base = s3.data.kit.edu
host_bucket = %(bucket)s.s3.data.kit.edu
website_endpoint = http://s3.data.kit.edu/

Available commands for managing objects and buckets in the S3 storage:

Make bucket
 s3cmd mb s3://BUCKET
Remove bucket
 s3cmd rb s3://BUCKET
List objects or buckets
 s3cmd ls [s3://BUCKET[/PREFIX]]
List all object in all buckets
 s3cmd la 
Put file into bucket
 s3cmd put FILE [FILE...] s3://BUCKET[/PREFIX]
Get file from bucket
 s3cmd get s3://BUCKET/OBJECT LOCAL_FILE
Delete file from bucket
 s3cmd del s3://BUCKET/OBJECT
Synchronize a directory tree to S3
 s3cmd sync LOCAL_DIR s3://BUCKET[/PREFIX] or s3://BUCKET[/PREFIX] LOCAL_DIR
Disk usage by buckets
 s3cmd du [s3://BUCKET[/PREFIX]]
Copy object
 s3cmd cp s3://BUCKET1/OBJECT1 s3://BUCKET2[/OBJECT2]
Move object
 s3cmd mv s3://BUCKET1/OBJECT1 s3://BUCKET2[/OBJECT2]

DragonDisk

Cross-platform freeware software, GUI based, available on Windows, Linux and Mac OS. [4]

Download and install:

sudo apt-get install libssl0.9.8
wget http://download.dragondisk.com/dragondisk_1.0.5-0ubuntu_i386.deb
sudo apt-get install libqt4-dbus libqt4-network libqt4-xml libqtcore4 libqtgui4
sudo dpkg -i dragondisk_1.0.5-0ubuntu_i386.deb
  • Ubuntu 64-bit
sudo apt-get install libssl0.9.8
wget http://download.dragondisk.com/dragondisk_1.0.5-0ubuntu_amd64.deb
sudo apt-get install libqt4-dbus libqt4-network libqt4-xml libqtcore4 libqtgui4
sudo dpkg -i dragondisk_1.0.5-0ubuntu_amd64.deb
  • CentOS, RedHat, Fedora, Suse
wget http://download.dragondisk.com/dragondisk-1.0.5-1.i686.rpm
sudo rpm -Uvh dragondisk-1.0.5-1.i686.rpm

To get started, create a new account using the endpoint, access key and secret key. Then you can use the GUI browse the existing objects, create new buckets, add or remove objects etc.

Check the quickstart guide at [5] for screenshots.

S3Anywhere

Available for Android

s3fs-c

FUSE


S3 APIs

Java

Python