Hadoop - MapReduce eclipse plugin not pointing to hdfs
MapReduce Eclipse plugin not pointing to local file system rather hdfs.
On your first run of WordCount from eclipse -> run on hadoop you may notice the java program uses local file system instead hdfs.
Adding hdfs location in your Configuration object solves this issue. In case of WordCount.java add the below into your main method.
public static void main(String[] args) throws Exception {
Configuration conf = new Configuration();
conf.addResource(new Path(HADOOP_INSTALL+"/conf/core-site.xml"));
conf.addResource(new Path(HADOOP_INSTALL+"/conf/hdfs-site.xml"));
}
Excellent article, highly enlightening. For more information, visit this link:
ReplyDeleteDigital Marketing Company in Chennai
2539A6D6
ReplyDeleteForum
Forum
Forum
Forum
Forum
Forum
Forum
Forum
Forum
5BB97F75
ReplyDeleteErzincan
Niğde
Edirne
Van
Afyon
Burdur
Tokat
Karabük
Kars
DB1819E8
ReplyDeleteNiğde
Muş
Tunceli
Tokat
Düzce
Iğdır
Tekirdağ
Konya
Amasya