I am a newbie to Hadoop. I am facing issues with accessing the files in my HDFS system from my java code in eclipse. Although my fs.default.name is set to hdfs://localhost:portno in core-site.xml it gives me the URI as file:// instead of hdfs:// I tried couple of other things like setting my input path as below : FileInputFormat.setInputPaths(conf, new Path("hdfs://localhost:9021/user/training/shakespeare/poems"));
but it throws the timeout error : 11/10/17 15:31:31 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9021. Already tried 0 time(s).
Please guide me how to resolve this issue, i am badly stuck cuz of this. Any help would really be appreciated.
Thanks