mortonnex
V2EX  ›  问与答

求问 hive 和 sparkSQL 的问题

  •  
  •   mortonnex · Aug 7, 2018 · 1129 views
    This topic created in 2862 days ago, the information mentioned may be changed or developed.
    如果每天执行一次 job

    表是每天建一个,还是更新之前的表?

    还有就是,你们是这么写数据到 FS,然后再从 FS 到 hive 的
    2 replies    2018-08-07 14:38:56 +08:00
    atomstar
        1
    atomstar  
       Aug 7, 2018
    如果是同类数据,肯定是根据时间分区啊 每天写入新的分区即可。
    至于数据怎么写入,要看你的源从哪里流来的,可以直接写 hdfs,也是根据日期分区写,然后做一下分区关联
    mortonnex
        2
    mortonnex  
    OP
       Aug 7, 2018
    @atomstar 谢谢

    如果用 FS 作源,那么一般是怎么写 HDFS 的? 一天中某个时间统一写入?还是持续写入?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   938 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 21:14 · PVG 05:14 · LAX 14:14 · JFK 17:14
    ♥ Do have faith in what you're doing.