"Path does not exist" error message received when trying to load data from HDFS
I am running following command in Zeppelin.First created hive context with following code -
val hiveContext = new org.apache.spark.sql.SparkSession.Builder().getOrCreate()
then I tried to load a file from HDFS with following code -
val riskFactorDataFrame = spark.read.format("csv").option("header", "true").load("hdfs:///tmp/data/riskfactor1.csv")
but I am getting following error message "org.apache.spark.sql.AnalysisException: Path does not exist: hdfs://sandbox-hdp.hortonworks.com:8020/tmp/data/riskfactor1.csv;"
I am quite new in Hadoop. Please help me figure out what wrong I am doing.



