æ¦è¦ Hiveã§ã¯SequenceFileã§ãã¡ã¤ã«ãèªã¿æ¸ãã§ãããããã¡ã¤ã«å ã®å®ãã¼ã¿ã¯1è¡ã1ã¤ã®Textã¨ãªãã Textã§ãªãèªåã§ä½ã£ãWritableããã¼ã¿ã«ãããå ´åã«ãHiveã®SerDeãå®ç¾©ããã SerDeã¯Serialize/Deserializeã®ç¥ã§ããã¼ã¿ãå ¥åºåã§ããå½¢å¼ã«å¤æããã¯ã©ã¹ã®ãã¨ã SerDeãä½ãã«ã¯org.apache.hadoop.hive.serde2.SerDeã¤ã³ã¿ã¼ãã§ã¼ã¹ãå®è£ ããã ããã¦CREATE TABLEã§SerDeã¯ã©ã¹ãæå®ããã Writableã¯ã©ã¹ ä¸çªæåã«ããã¼ã¿ä¿åã«ä½¿ãWritableã¯ã©ã¹ãä½ã£ã¦ããã ä»åã¯ä¾ã¨ãã¦WordCountã®ãã¼ã¿ï¼åèªã¨åèªæ°ï¼ãä¿æããWritableãç¨æãã¦ã¿ãã package sample.writable; import java.io.DataIn
{{#tags}}- {{label}}
{{/tags}}