1、通过用户界面提交SQL        驱动接收SQL

2、驱动将SQL传送给编译器   

3、编译器获得SQL        检查语法、匹配资源、去metastore查询

4、metastore返回相应的数据库字段信息    优化SQL、产生执行计划

5、驱动接收执行计划            将执行计划发送执行引擎

6、执行引擎解析

6.1、    DDL操作:直接和metastore交互
        create table t1(name string);
        drop table t1;

6.1、    DML:直接读取数据,和namenode、datanode交互
        select * from t1 limit 100;
        select name form t1;

6.1、    执行MapReduce
        跑MR job
        返回结果集信息
        select count(1) from t1;

相关文章:

  • 2022-12-23
  • 2022-01-14
  • 2021-05-08
  • 2021-05-07
  • 2018-09-26
  • 2021-12-24
  • 2021-09-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
  • 2021-12-04
  • 2022-01-08
  • 2022-12-23
  • 2022-02-08
相关资源
相似解决方案