Increase number of Hive mappers in Hadoop 2

后端 未结 3 750
北荒
北荒 2021-02-02 02:56

I created a HBase table from Hive and I\'m trying to do a simple aggregation on it. This is my Hive query:

from my_hbase_table 
select col1, count(1) 
group by c         


        
3条回答
  •  [愿得一人]
    2021-02-02 03:25

    Splitting the HBase table should get your job to use more mappers automatically.

    Since you have 2 splits each split is read by one mapper. Increase no. of splits.

提交回复
热议问题