Try to access HDFS in the quickstart docker image throgh Apache Spark
scala> val df = spark.read.csv("hdfs://cloudera:cloudera@DOCKER_IP:8020/user/cloudera/cloudera-csv-test.csv")
failed on connection exception: java.net.ConnectException: Connection refused; For more details see: wiki.apache.org/ConnectionRefused
1. is cloudera/cloudera the right user name /password? Is the right syntax to access the hdfs?
2. why is there the connection refused? I can access the HUE correctly and add/delete file there.