I want to read the file from the Hadoop File System.
In order to achieve the correct path of the file, I need hostname and port address of the hdfs.
so finally my path of the file will look something like
Path path = new Path("hdfs://22.214.171.12444:9000/user/filename.txt")
Now I want to know to extract the HostName = "126.96.36.19944" & port: 9000?
Basically, I want to access the FileSystem on Amazon EMR but, when I use
FileSystem fs = FileSystem.get(getConf());
You possibly called FileSystem.get(conf) when you should have called FileSystem.get(uri, conf) to obtain a file system supporting your path
So I decided to use URI. (I have to use URI) but I am not sure how to access the URI.