Showing posts with label open source. Show all posts
Showing posts with label open source. Show all posts

Sunday, October 07, 2012

AWS Glacier Java Command Line Tool for PHP, Python, Ruby etc

For those of us who want to access Amazon Web Services Glacier from various environments and with a variety of programming languages I have developed an open-source (Apache 2 license) java command line app which operates AWS Glacier Vaults and Archives. The app is mostly based on AWS Java SDK samples from AWS documentation, e.g. http://docs.amazonwebservices.com/amazonglacier/latest/dev/creating-vaults-sdk-java.html

This project is hosted with Google Code: http://code.google.com/p/aws-glacier-app/
How to use the app: http://code.google.com/p/aws-glacier-app/wiki/Usage
And the ZIP with all the JARs is here: http://code.google.com/p/aws-glacier-app/downloads/list

Thursday, August 30, 2012

Installing RIAK on RedHat Linux CentOS 6


# The official guide is here: http://wiki.basho.com/Installing-on-RHEL-and-CentOS.html#From-source

# get superuser permissions: login as root

 # for CentOS 6 (64-bit) and RIAK 1.2.0.1 -
wget http://downloads.basho.com.s3-website-us-east-1.amazonaws.com/riak/CURRENT/rhel/6/riak-1.2.0-1.el6.x86_64.rpm
sudo rpm -Uvh riak-1.2.0-1.el6.x86_64.rpm 

# next, edit config file adding external server' IP next to internal 127.0.0.1 wherever appropriate
# For HTTP / HTTPS the lines should look like
#
#  {http, [ {"127.0.0.1", 8098 }, {"222.222.8.155", 8098} ]},
# and
# {https, [{ "127.0.0.1", 8098 }, {"222.222.8.155", 8098}]},

vi /etc/riak/app.config

#next, start RIAK instance

riak start


# to test your install put some JPEG file into RIAK

curl -X PUT HTTP://127.0.0.1:8098/riak/images/1.jpg   -H "Content-type: image/jpeg" --data-binary @./u.jpg

# check you can see from outside of RIAK machine by using a browser with link to
http://[external-IP-or-domain-for-RIAK-machine]:8098/riak/images.1.jpg