Embulk - é²åãããã«ã¯ãã¼ã¿ãã¼ã
Embulkã«ã¤ãã¦ä½è ã®å¤æ©ããããä½ãåºæ¥ãããã¢ã¼ããã¯ãã£ãä»å¾ã®å±æãªã©ã®èª¬æã
æ°ã«ãªã£ããã¤ã³ã
- çµã¿è¾¼ã¿EmbulkãEmbulkãèªåã®ãµã¼ãã¹å ã§ä½¿ãããJavaã¨Rubyã§å¯è½
- plugin bundle -> bundlerçãªEmbulkãã©ã°ã¤ã³ã®ãã¼ã¸ã§ã³åºå®ã®ä»çµã¿
- Gradle 2.6 -> ./gradle -t buildã åæã«ã½ã¼ã¹ã³ã¼ããæ¤ç¥ãã¦ãã«ããã¦ãããã便å©ãã
- JSONåãEmbulk0.8ã§ã¯è¿½å ããã
Embulk at Treasure Data, Inc.
TD社ã®èµ¤éããããTD社å ã§Embulkãã©ã使ããã¦ããã®èª¬æã
æ°ã«ãªã£ããã¤ã³ã
- åºæ¬çã«TD社ã®connectæ©è½ã§ä½¿ããã¦ãEmbulkã¯OSSçã¨åããå¿ è¦ãªæ©è½ã¯OSSçã«ã³ã³ããªãã¥ã¼ããã¦ããã
- Fluentdã¨éã£ã¦ãã©ã°ã¤ã³éçºãé¢ãã£ã¦ãã
- TDã®ãã¹ãäºæ , 80%ã®ã«ãã¬ãã¸ãç¡ãã¨ãªãªã¼ã¹ã§ããªããå³æ ¼ã
æ°äººãEmbulk mBaaSãã©ã°ã¤ã³ãéçºãã話
æ°äººç ä¿®ã®ä¸ç°ã§embulkã®ãã©ã°ã¤ã³ãéçºãããã¨ãããã©æ«æãã話ã çºè¡¨ã®ãã¨ã®è³ªåã³ã¼ãã¼ã§Embulkã®ãã©ã°ã¤ã³éçºã¯é£ãããã®ãªã®ããã¨ãã質åãæ¥ã¦ã¾ããããç¾ç¶ã¯JavaãªããRubyããããªãã«æ¸ãã¦ãä»ã®ãã©ã°ã¤ã³ã®ã³ã¼ããèªããã¨ã«æµæããªã人ãªããããªã«é£ãããªãã£ã¦æããªã®ã§ãæ°äººç ä¿®ã§ããã°ã©ãã³ã°æè²ã®ä¸ç°ã§ããã®ã¯ã¡ã¨è¾ãã£ããã¨æãã¾ãã
Embulkã«è¶³ããªã5ã¤ã®ã³ã
DeNAã§ã®Bulkdataã·ã¹ãã (HDFSããVertica)ãæ§ç¯ããã«ããã£ã¦Embulkã«è¶³ããªãé¨åãããããè£å®ãã¾ãããã¨ãã話ã¨ããã«ããã£ã¦Embulkã«æããã¨ãçºè¡¨ãããªãããããã§å ±æã§ããå 容ã§ããã
- YAML管ç
- è¤æ°äººãYAMLããããã®ã§ç®¡çã大å¤
- ã¹ãã¼ããã¨ã«åããããªå®ç¾©ãã¡ã¤ã«ãç¨æããªãã¨ãããªããæ©å¯æ å ±ããã¡ã¤ã«ã«æ¸ããããªãããªã©
- ãªã®ã§ãDBããè¨å®æ å ±ãèªãã§ãã¦åçã«ãã¡ã¤ã«ãä½ãã¸ã§ãã¬ã¼ã¿ãä½ã£ã
- è¤æ°äººãYAMLããããã®ã§ç®¡çã大å¤
- åä½å¦çãã¬ã¼ã ã¯ã¼ã¯
- äºåå¦çãäºå¾å¦çãè¡ãããã®ä»çµã¿ããªã(ãã®ãã¡ã¤ã«ãããã¨ãã ãå¦çããããã¨ã)
- Embulkã©ããã¼ã§å®è£
- ã¸ã§ããã¥ã¼
- Embulkã¯åã«ãã«ã¯ã¸ã§ãã®å®è¡åºç¤ãªã®ã§ãã¹ã±ã¸ã¥ã¼ãªã³ã°ãªã©ã®æ©è½ã¯ãªã
- Sidekiqã使ã£ãç°¡åãªå®è¡ç®¡çã·ã¹ãã ãä½æ
- æµç³ã«Embulkã«ãã®æ©è½ã¯æãã§ã¯ããªã
- 並åå¦ç
- INã¨OUTã§åã並åæ°ãªã®ã§ãOUTã ãçµãããã¨ãã£ãäºãåºæ¥ãªã
- input-hdfsã¨output-vertica ã§ã¯Pluginå´ã§ãããã調æ´ã§ããããã«ãã
- ç¶ãããå®è¡
- ãã¡ã¤ã«ãã¹ã¯å¤ãããªããã©è¿½è¨ããã¦ãããã¡ã¤ã«ã®å ´åãç¾ç¶ã®Embulkã®next-configæ©è½ã ã¨é£ãã
- èªä½ãã§ããªãã£ãã®ã§ã©ããã¼å´ã§å¯¾å¿
DBã«è«¸ã ã®æ å ±ãå ¥ãã¦ãå®è¡ç´åã«çæ
ããã¦Embulkã使ã£ã¦ãã°ç£è¦ããã¨å¹¸ãã«ãªããç¶æ³ãããã³ãã®å°å ¥äºä¾
æ§é åããã¦ãªãã¨ã©ã¼ãã°ãæ§é åããããã®åºç¤ã¨ãã¦Embulkãä½ã£ã話ã ERRORãã°åºéãåé¡ã¯ã©ãã§ããããã ãªã¼ã¨å ±æãã¦ãã¾ãã¾ããw
Embulkãæ´»ç¨ãããã°ç®¡çã·ã¹ãã
顧客ã«å¿ãããã°ãã¡ã¤ã«ç®¡çã·ã¹ãã ãEmbulkã使ã£ã¦æ§ç¯ãã話ã embulk-parser-grok ã¯ä¾¿å©ãããªã®ã§ãã¡ãã£ã¨èª¿ã¹ã¦ã¿ãããã¨æãã¾ããã