- 日時: 2014-09-16 19:30~
- 場所: グラントウキョウサウスタワー 41F リクルートテクノロジーズ
- イベント詳細 http://elasticsearch.doorkeeper.jp/events/13917
Elasticsearch Inc. Jun Ohtaniさん @johtani この間のefk本の勉強会の発表からaggs関連詳しくしたような感じかな
- Aggregation機能はver 1.0から
Elasticsearch Inc. Jun Ohtaniさん @johtani この間のefk本の勉強会の発表からaggs関連詳しくしたような感じかな
rpmで問題が起きたのでまとめておく.あと英語で書くと日本の人が読んでくれないのでまず日本語で…
現在のtd-agentは1.1.19だが,2.0.0と1.2.0があった場合,yum updateでは2.0.0が入ってしまう.これでは,Rubyのバージョンが変わった場合などはgemの再インストールが必要で,単なるアップデートでは起動出来なくなるという問題がある(chefとか使っていれば多分防ぐことは出来るが強制することは出来ない).
| # Check java version | |
| JAVA_VER=$(java -version 2>&1 | sed 's/java version "\(.*\)\.\(.*\)\..*"/\1\2/; 1q') | |
| if [ "$JAVA_VER" -lt 18 ] | |
| then | |
| # Download jdk 8 | |
| echo "Downloading and installing jdk 8" | |
| wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8-b132/jdk-8-linux-x64.rpm" | |
| # Silent install |
| curl -s -XPOST localhost:9200/_bulk?pretty=true --data-binary ' | |
| { "index" : { "_index" : "parent_child", "_type" : "store", "_id" : "store1" } } | |
| { "name" : "auchan", "owner" : "chris" } | |
| { "index" : { "_index" : "parent_child", "_type" : "department", "_id" : "department1", "parent" : "store1" } } | |
| { "name" : "toys", "numberOfProducts" : 150 } | |
| { "index" : { "_index" : "parent_child", "_type" : "product", "_id" : "product1", "parent" : "department1", "routing" : "store1" } } | |
| { "name" : "gun", "trademark" : "tiger", "price" : 9, "store_id" : "store1" } | |
| ' |