原題:Dynamo: Amazon’s Highly Available Key-value Store
原文: Amazon's Dynamo - All Things Distributed (PDF Version)
This article is translated by @ono_matope. Please contact me if any problem.
| -- Presto | |
| SELECT | |
| a.td_client_id as td_client_id | |
| ,a.td_os as td_os | |
| ,'Weekly_Over5_Accesses' as segment_name | |
| FROM | |
| ( | |
| SELECT | |
| td_client_id |
| require 'td' | |
| require 'td-client' | |
| require 'time' | |
| require 'date' | |
| # auth | |
| auth_key = File.read("client.cfg", :encoding => Encoding::UTF_8) | |
| cln = TreasureData::Client.new(auth_key) | |
| # argv | |
| date = ARGV[0] |
原題:Dynamo: Amazon’s Highly Available Key-value Store
原文: Amazon's Dynamo - All Things Distributed (PDF Version)
This article is translated by @ono_matope. Please contact me if any problem.
| use strict; | |
| use warnings; | |
| my @offset = (20, 20, -20, -20); | |
| while(<*.pdf>) | |
| { | |
| next if /-cropped/; | |