Yes your understanding is correct, NameNode IP and Port. in specifying hdfs path when declaring an RDD with pre-existing hdfs data.
You can find NameNode IP and Port in etc/conf/core-site.xml. If port is not there in that file by default it runs on 8020.