Design of Spark + Parquet “database”

大城市里の小女人 提交于 2019-12-05 18:17:07

My Level 0 design of this

  • Use partitioning by date/time (if your queries are based on date/time to avoid scanning of all data)
  • Use Append SaveMode where required
  • Run SparkSQL distributed SQL engine so that
    1. You enable querying of the data from multiple clients/applications/users
    2. cache the data only once across all clients/applications/users
  • Use just HDFS if you can to store all your Parquet files

I have very similar requirement in my system. I would say if load the whole year's data -for 100g one day that will be 36T data ,if you need to load 36TB daily ,that couldn't be fast anyway. better to save the processed daily data somewhere(such as count ,sum, distinct result) and use that to go back for whole year .

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!