まずはVagrantの1.6以上必要なのでインストール。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygem" | |
require "systemu" | |
require "fileutils" | |
record_dir = "/root/records" | |
FileUtils.mkdir_p(record_dir) if !File.exists?(record_dir) | |
def ready | |
result = systemu("netstat -an | grep 8080 | grep -v grep | grep EST | wc -l")[1].chomp | |
while result.to_i > 80 |
この章ではRDDの概要について説明します。 最初はRDD($2-1)Sparkで利用するプログラムインタフェース($2-2)について説明します。それからメモリの詳細について説明し($2-3)、最後にSparkのモデルの限界($2-4)について議論します。
RDDは読み込み専用のレコードを分割した集まりです。RDDはオペレーションを通して安定したストレージか他のRDDが作成されます。私たちはこのオペレーションについて他のRDDオペレーションと差別化するためにtransformationsとよびます。例えばmap,filter,joinなどがそれにあたります。
RDDは常に実データを持つ必要はありません。その代わりRDDはストレージのデータからたどれるための情報を持つようにします。これはパワフルな特徴で失敗したあと、再構成できないRDDはプログラムから参照できません。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Rubyのオブジェクトについて | |
### オブジェクトの定義 | |
include/ruby/ruby.hにある。 | |
それぞれのクラスの定義を抜粋する。 | |
```ruby | |
struct RBasic { | |
VALUE flags; |
http://http2.github.io/http2-spec/
Section 3.5によると Connection Headerは以下の文字列で識別する。
CONNECTION_HEADER = "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GEM | |
remote: https://rubygems.org/ | |
specs: | |
actionmailer (3.2.15) | |
actionpack (= 3.2.15) | |
mail (~> 2.5.4) | |
actionpack (3.2.15) | |
activemodel (= 3.2.15) | |
activesupport (= 3.2.15) | |
builder (~> 3.0.0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Macの設定 | |
--- | |
* システム環境設定 | |
* キー入力のスピードを最速にする | |
* Dockを自動的に隠す | |
* homebrewインストール | |
* fontインストール | |
* http://nkzn.hatenablog.jp/entry/2012/06/01/234855 (Ritcy) | |
* tmuxインストール |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-2.0.1.min.js"></script> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.3.0"></script> | |
<style type="text/css"> | |
svg { |