I am also facing the same error while executing the hive query from both console and Hue.
I ran the query
‘SELECT count(id) FROM tweets_raw;’ under ‘Hive - Project’ Chapter.
getting the error 504 Gateway Time-out 504 Gateway Time-out nginx/1.12.2 on Hue continuously on screen.
Below are the logs from the console. it got hanged here in console.
Hadoop job information for Stage-1: number of mappers: 29; number of reducers: 1
2019-09-01 14:32:40,883 Stage-1 map = 0%, reduce = 0%
2019-09-01 14:32:49,738 Stage-1 map = 10%, reduce = 0%, Cumulative CPU 12.61 sec
2019-09-01 14:32:50,851 Stage-1 map = 17%, reduce = 0%, Cumulative CPU 33.22 sec
2019-09-01 14:32:52,995 Stage-1 map = 21%, reduce = 0%, Cumulative CPU 39.13 sec
2019-09-01 14:32:54,098 Stage-1 map = 25%, reduce = 0%, Cumulative CPU 46.76 sec
2019-09-01 14:32:55,189 Stage-1 map = 31%, reduce = 0%, Cumulative CPU 63.06 sec
2019-09-01 14:32:57,358 Stage-1 map = 34%, reduce = 0%, Cumulative CPU 68.18 sec
2019-09-01 14:32:59,446 Stage-1 map = 48%, reduce = 0%, Cumulative CPU 94.0 sec
2019-09-01 14:33:00,483 Stage-1 map = 57%, reduce = 0%, Cumulative CPU 106.21 sec
2019-09-01 14:33:01,521 Stage-1 map = 69%, reduce = 0%, Cumulative CPU 134.29 sec
2019-09-01 14:33:29,598 Stage-1 map = 76%, reduce = 0%, Cumulative CPU 145.17 sec
2019-09-01 14:34:29,692 Stage-1 map = 76%, reduce = 0%, Cumulative CPU 145.17 sec
2019-09-01 14:35:29,705 Stage-1 map = 76%, reduce = 0%, Cumulative CPU 145.17 sec
2019-09-01 14:36:29,744 Stage-1 map = 76%, reduce = 0%, Cumulative CPU 145.17 sec
Kindly help to resolve this issue ASAP.