Whenever I run function "collect_list" on Hive, it always throws an error:
Query ID = xxxxx
Total jobs = 1
Launching Job 1 out of 1
Failed to get session
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask
Here's the example:
Data:
id value
1 A
1 B
2 C
3 D
I run the query on hive's terminal and here's my query:
SELECT id, collect_list(value) FROM something GROUP BY id;
I want the result like this:
id value
1 A, B
2 C
3 D
Do I need to configure something before using collect_list function? Thank you.