java.net.ConnectException: Connection refused

Hi,

I have newly enrolled for couldex lab. I see the following error while executing hdfs command. It looks like the environment is not setup properly.

arun004ms8259@cxln4:/etc/hadoop/conf$ hdfs dfs -ls /
ls: Call From cxln4.c.thelab-240901.internal/10.142.1.4 to cxln1.c.thelab-240901.internal:8020 failed on connection exception: java.net.ConnectException: Connection refused; For more details
see: http://wiki.apache.org/hadoop/ConnectionRefused

And the pyspark version looks to be 2.1.x which is a older version.

[arun004ms8259@cxln4 ~]$ pyspark --version
SPARK_MAJOR_VERSION is set to 2, using Spark2
Welcome to
____ __
/ / ___ / /
\ / _ / _ `/ __/ '/
/
/ .__/_,// //_\ version 2.1.1.2.6.2.0-205
/
/

Using Scala version 2.11.8, Java HotSpotâ„¢ 64-Bit Server VM, 1.8.0_112
Branch HEAD
Compiled by user jenkins on 2017-08-26T09:32:23Z
Revision a2efc34efde0fd268a9f83ea1861bd2548a8c188
Url git@github.com:hortonworks/spark2.git
Type --help for more information.
[arun004ms8259@cxln4 ~]$