Skip to content

Commit

Permalink
readme updated for s3 filesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Perkins committed Mar 5, 2011
1 parent da34c2f commit c06a47a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.textile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ hadoopfs.open("myhadoopfile", 'w') do |f|
end

# get a new instance of s3 filesystem and write to it
s3fs = FileSystem.get(:s3)
access_key_id = '1234abcd'
secret_access_key = 'foobar1234'
s3fs = FileSystem.get(:s3, accees_key_id, secret_access_key)
s3fs.mkpath 'mys3bucket' # bucket must exist
s3fs.open("mys3bucket/mys3file", 'w') do |f|
f.write("Writing a string to an s3 file")
Expand Down

0 comments on commit c06a47a

Please sign in to comment.