Use s3 file system to export query results

I am using hue helm with Hue version 4.11.0 on EKS. I assigned one service account that can assume an AWS IAM role. Then I configured hue to use s3 bucket as follow:


I was hoping it would work. but when I try to export query results, then it gives a strange error:
Expecting value: line 1 column 1 (char 0)

In the container logs, it gives an error about webhdfs:

hadoop.fs.exceptions.WebHdfsException: HTTPConnectionPool(host=‘localhost’, port=50070): Max retries exceeded with url: /webhdfs/v1/user/test? (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7f62bee42fa0>: Failed to establish a new connection: [Errno 111] Connection refused’))

I am wondering how can I make it working. Thanks