To check your hdfs port use the following command in linux To check your hdfs port use the following command in linux hdfs getconf -confKey fs.default.name