mortonnex
V2EX  ›  问与答

求问 hive 和 sparkSQL 的问题

  •  
  •   mortonnex · Aug 7, 2018 · 1393 views
    This topic created in 3011 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
    atomstar
    Aug 7, 2018
    1
    如果是同类数据,肯定是根据时间分区啊 每天写入新的分区即可。
    至于数据怎么写入,要看你的源从哪里流来的,可以直接写 hdfs,也是根据日期分区写,然后做一下分区关联
    mortonnex
    mortonnex
    OP
    Aug 7, 2018
    2
    @atomstar 谢谢

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