Unable to access hdfs getting below error

Cannot access: /user/pavanmdlg4253. The HDFS REST service is not available.

HTTPConnectionPool(host=‘cxln1.c.thelab-240901.internal’, port=50070): Max retries exceeded with url: /webhdfs/v1/user/pavanmdlg4253?op=GETFILESTATUS&user.name=hue&doas=pavanmdlg4253 (Caused by NewConnectionError(’<requests.packages.urllib3.connection.HTTPConnection object at 0x7f3e012bde50>: Failed to establish a new connection: [Errno 111] Connection refused’,))

I am also facing issue. Please assist.

[umeshdeorukhkar9526@cxln5 ~]$ hadoop fs -ls Sample.txt
ls: Call From cxln5.c.thelab-240901.internal/10.142.0.5 to cxln1.c.thelab-240901.internal:8020 failed on connection exception: java.net.ConnectExcept
ion: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
[umeshdeorukhkar9526@cxln5 ~]$

Hi, Umesh.

We have restarted the Namenode and I have rechecked it, Hadoop commands are working fine now.
May I know if still you are getting the same issue?
Kindly send the screenshots for the same.

All the best!

Thank you. I am able to run Hadoop commands now.