简体   繁体   中英

How can hive run an mapreduce algorithm?

Now I'm implementing apache hive, and I now that hive run an mapreduce algorithm too like the usual hadoop mapreduce. So, I want to know, about an explanation about mapreduce, mapper and reducer from a hive query. How can that's query do an mapreduce?

Thanks all.....

Similar to what Oracle or MySQL does with SQL when you run an SQL query in those DB's. There is a parser which parses the query and then builds out Oracle/MySQL specific directives which the DB engine understands. Similarly Hive has a parser & optimizer which converts SQL query to MR.

For eg select count(*) from table_name; Would translate to Mapper (Read file and count) --> Reducer (sum all counts and return).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM