I\'m trying to read a file in my hdfs. Here\'s a showing of my hadoop file structure.
hduser@GVM:/usr/local/spark/bin$ hadoop fs -ls -R / drwxr-xr-x - hduser s
You could access HDFS files via full path if no configuration provided.(namenodehost is your localhost if hdfs is located in local environment).
hdfs://namenodehost/inputFiles/CountOfMonteCristo/BookText.txt