ç¬æã¨åè¦ã§é¸ã¶HDFSã®ãã¡ã¤ã«å½¢å¼
HDFSã®ãã¡ã¤ã«å½¢å¼ãä½ã«ãã¹ãããã¨ããã®ã¯RPGã®ä¸»äººå ¬ã®ååãä½ã«ãã¹ãããã¨åããããçããæ©ã¾ãããã¨æãã¾ãã
ãå¤åã«æ¼ããåãæ©ã¿ã¾ããã®ã§ã調ã¹ãäºãã¾ã¨ãã¦ããã¾ãã ãªãå ã«çµè«ã ãè¨ã£ã¦ããã¾ãã¨ã大ä½ã®ã±ã¼ã¹ã§ã¯ORCãZlibå§ç¸®ãã¦ä½¿ã£ã¦ããã°è¯ãããããªãããªã¨èãã¦ãã¾ããããµã«ãªã¯æè¿ã§ãã
â»201701/21è¿½è¨ EMR5.0以éã§ã¯Hive + ORCã§é ããªãã±ã¼ã¹ãããã¨ã®ã¢ããã¤ã¹ãAWSã®ãµãã¼ãã®æ¹ãã伺ãã¾ãããEMRã使ã£ã¦ããæ¹ã¯Parquetã¨ã®é度æ¯è¼ããã¦ã¿ãã»ããè¯ãããããã¾ããã
ãã¡ã¤ã«å½¢å¼ã®åè£
ãã¡ã¤ã«å½¢å¼ã®åè£ã¨ãã¦ã¯å¤§ä½ä»¥ä¸ãæãããã¾ãã
åå½¢å¼ã®ç¹å¾´
ããããã®ãã¡ã¤ã«å½¢å¼ã®è©³ç´°ãªèª¬æã¯ããã§ã¯ãããç°¡åãªç¹å¾´ã ãè¨ãã¾ãããªãã以ä¸ã®ãµã¤ããåèã«ããã¦ããã ãã¾ããã
How to Choose a Data Format - Silicon Valley Data Science
hadoop - Parquet vs ORC vs ORC with Snappy - Stack Overflow
Mostafa Elzoghbi: Avro vs Parquet vs ORCFile as Hadoop storage files
ORCã¨Parquetã¯å ±ã«ã«ã©ã ãã¼åã§ãã¼ã¿ãä¿åã§ããã¯ã¨ãªã®æé©åã«åªãã¦ããã ã¾ããå§ç¸®å¹çãå ±ã«é«ãã
- ORCã¯row Indexãbloom filterã使ããã®ã§åºæ¬çã«ã¯ORCã®æ¹ãè¯ãããã ããã¹ããæ·±ããã¼ã¿æ§é ã®å ´åã¯Parquetã®æ¹ãè¯ãã
- Impalaã¯ORCããµãã¼ããã¦ããªã
Apache Avroã¯ã«ã©ã 追å ã»åé¤ã»è¤æ°ã«ã©ã ã®ãªãã¼ã ã¾ã§ãµãã¼ããã¦ããã«ã©ã æ§é ã®å¤æ´ã«å¼·ãã
SequenceFileã¯MapReduceã®ã¸ã§ãã«æé©åããã¦ããã
TextFileã¯æ¸ãè¾¼ã¿ãæ©ãã人ã®ç®ã§ç¢ºèªã§ããã®ã§ç®¡çããããã
ã¦ã¼ã¹ã±ã¼ã¹ãã¨ã®ä½¿ãåã
ä¸è¨ã®ç¹å¾´ãèããã¨ãã¦ã¼ã¹ã±ã¼ã¹ãã¨ã®ä½¿ãåãã¨ãã¦ã¯ä»¥ä¸ã®ããã«ãªãã¾ãã
- åç´ã«ã¯ã¨ãªãæé©åããããªãORC
- ãã¹ããæ·±ããã¼ã¿æ§é ã®å ´åãImpala使ããªãParquet
- ã«ã©ã å¤æ´ã«å¼·ãããããªãAvro
- MapReduceã¸ã§ãæé©åãªãSequence
- èªã¿è¾¼ã¿ã®ããã©ã¼ãã³ã¹ãã©ãã§ãè¯ããªãText
ORCã®ãã¡ã¤ã«å§ç¸®å½¢å¼
HDFSä¸ã®ãã¡ã¤ã«ã¯å§ç¸®ããäºã§å®¹éãæ¸ããå¦çãå¹ççã«ãªãäºãå¤ãã§ãã
ORCã§ã¯å§ç¸®å½¢å¼ã¨ãã¦SnappyãZlibãé¸ã¹ã¾ããæã¯å§ç¸®å¹çãªãZlibãæ¸ãè¾¼ã¿å¹çãªãSnappyã¨ããä½ã¿åãã ã£ããããã§ããã2015å¹´ãããã«Zlibã®ã¢ã«ã´ãªãºã ãæ°ãããªã£ã¦ããã¯æ¸ãè¾¼ã¿å¹çã«ããã¾ã§å·®ãç¡ããªã£ãã®ã§ç¡æ¡ä»¶ã§Zlibã§è¯ããã¨æãã¾ãã
â»å®é100Gbç¨åº¦ã®ãã¡ã¤ã«ã§Snappyã¨Zlibã§æ¸ãè¾¼ã¿é度ãæ¯è¼ããéã¯ã»ã¨ãã©å·®ãããã¾ããã§ãã
åè Snappy vs. Zlib - Pros and Cons for each compression in Hive/ Orc files - Hortonworks
ORC: 2015 Faster, Better, Smaller
ã¾ã¨ã
Hadoopã使ãããã¨ãã¯å¤§ä½HiveãPrestoãªã©ã®ã¯ã¨ãªã¨ã³ã¸ã³ã¨ã»ããã§ä½¿ãã¨æãã®ã§ãåºæ¬çã«ã¯Zlib+ORCã§è¯ãã¨æãã¾ãï¼ãªãORCãã©ã¼ãããã®æ§è½ãæ´»ããããã«ã¯è¨å®å¤ããã¼ã¿æå ¥æã«å°ã工夫ãå¿ è¦ã ã¨æã£ã¦ãã¾ãããããã¯æ¬¡åã®è¨äºã§æ¸ããã¨æãã¾ãã