首页 | 本学科首页   官方微博 | 高级检索  
     

分布式流数据加载和查询技术优化
引用本文:易佳,薛晨,王树鹏. 分布式流数据加载和查询技术优化[J]. 计算机科学, 2017, 44(5): 172-177
作者姓名:易佳  薛晨  王树鹏
作者单位:中国科学院信息工程研究所 北京100093,国家计算机网络与信息安全管理中心 北京100029,中国科学院信息工程研究所 北京100093
基金项目:本文受国家自然科学基金(61271275,61202067)资助
摘    要:
分布式流查询是一种基于数据流的实时查询计算方法,近年来得到了广泛的关注和快速发展。综述了分布式流处理框架在实时关系型查询上取得的研究成果;对涉及分布式数据加载、分布式流计算框架、分布式流查询的产品进行了分析和比较;提出了基于Spark Streaming和Apache Kafka构建的分布式流查询模型,以并发加载多个文件源的形式,设计内存文件系统实现数据的快速加载,相较于基于Apache Flume的加载技术提速1倍以上。在Spark Streaming的基础上,实现了基于Spark SQL的分布式流查询接口,并提出了自行编码解析SQL语句的方法,实现了分布式查询。测试结果表明,在查询语句复杂的情况下,自行编码解析SQL的查询效率具有明显的优势。

关 键 词:大数据  流处理系统  分布式流查询  查询优化  Kafka快速加载
收稿时间:2016-08-02
修稿时间:2016-12-11

Optimization on Distributed Stream Data Loading and Querying
YI Ji,XUE Chen and WANG Shu-peng. Optimization on Distributed Stream Data Loading and Querying[J]. Computer Science, 2017, 44(5): 172-177
Authors:YI Ji  XUE Chen  WANG Shu-peng
Affiliation:Institute of Information Engineering,Chinese Academy of Sciences,Beijing 100093,China,National Computer Network Emergency Response Technical Team/Coordination Center of China,Beijing 100029,China and Institute of Information Engineering,Chinese Academy of Sciences,Beijing 100093,China
Abstract:
Distributed stream query is a kind of real-time query computation method based on data stream,which has been widely concerned and developed rapidly in recent years.This paper summarized the research results of the distributed stream processing framework in real-time relational query.There is an in-depth comparison of some products,including the distributed data loading framework,distributed stream computing framework and distributed stream query systems.The paper proposed a distributed stream query model based on Spark Streaming and Apache Kafka,and designed a fast data loading technology based on virtual memory file system,which gets the data loading speed one time faster compare to Apache Flume.On the basis of Spark Streaming,a distributed stream query interface based on Spark SQL was realized,and a method for parsing SQL queries was proposed to implement distributed query in data stream.The experiment results demonstrate that,in the case of complex SQL queries,the method of analyzing SQL by writing code by oneself has obvious advantages.
Keywords:Big data  Stream processing system  Distributed stream query  Query optimization  Kafka fast loading
点击此处可从《计算机科学》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号