Eclipse的插件的Hadoop和说QUOT; java.io.EOFException"在试图连接 [英] Eclipse Hadoop Plugin says "java.io.EOFException" while trying to connect

查看:272
本文介绍了Eclipse的插件的Hadoop和说QUOT; java.io.EOFException"在试图连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  • 我使用这个<试图设置我的Eclipse Hadoop的一个href=\"http://v-lad.org/Tutorials/Hadoop/17%20-%20set%20up%20hadoop%20location%20in%20the%20eclipse.html\"相对=nofollow>页面

  • 我使用Hadoop Eclipse插件的jar从这里

  • 我的核心-site.xml中貌似有以下几点:


 &LT;性&gt;
  &LT;名称&gt;&fs.default.name LT; /名称&gt;
  &LT; VALUE&GT; HDFS://本地主机:54310&LT; /值&GT;
  &LT;描述&gt;在默认文件系统的名称。一个URI的
  计划性和权威性决定了文件系统实现。该
  URI的方案决定config属性(fs.SCHEME.impl)命名
  文件系统实现类。该URI的授权用于
  确定主机,端口等的文件系统&LT; /描述&GT;
&LT; /性&gt;
&LT; /结构&gt;



  • 我妈preD-site.xml中有以下


 &LT;性&gt;
  &LT;名称&gt; MA pred.job.tracker&LT; /名称&gt;
  &LT; VALUE&GT;本地主机:54311&LT; /值&GT;
  &LT;描述&gt;在主机和端口的马preduce工作运行跟踪
  在。如果本地,则作业在运行过程中作为一个单一的地图
  和reduce任务。
  &LT; /描述&GT;
&LT; /性&gt;



  • 我在马preduce角度在Eclipse中设置Hadoop的位置


      

    地点名称:本地的Map Reduce主


      
      

        
    • 主机:本地主机

    •   
    • 端口:54310

    •   

      
      

    DFS主


      
      

        
    • 主机:本地主机

    •   
    • 端口:54311

    •   


  • 当我尝试连接它给错误说:



  

Error:调用到localhost / 127.0.0.1:54311失败的地方例外:java.io.EOFException



  • 有人可以帮我解决这个问题?

感谢您


解决方案

不幸的是Eclipse插件已经过时,几个月前,我设法得到它正常工作,但这是一场噩梦,我不得不改变很多参数有: (

我会建议使用基于Web的浏览HDFS:去的http://本地主机:50070 或任何其他主机你已经安装的Hadoop,并单击浏览文件系统链接(第一个蓝色从上面的链接),你会看到所有你需要的。

  • I am trying to setup my Eclipse for Hadoop using this page
  • I am using hadoop eclipse plugin jar from here
  • my core-site.xml looks like has the following:

  <property>
  <name>fs.default.name</name>
  <value>hdfs://localhost:54310</value>
  <description>The name of the default file system.  A URI whose
  scheme and authority determine the FileSystem implementation.  The
  uri's scheme determines the config property (fs.SCHEME.impl) naming
  the FileSystem implementation class.  The uri's authority is used to
  determine the host, port, etc. for a filesystem.</description>
</property>
</configuration>

  • my mapred-site.xml has following

<property>
  <name>mapred.job.tracker</name>
  <value>localhost:54311</value>
  <description>The host and port that the MapReduce job tracker runs
  at.  If "local", then jobs are run in-process as a single map
  and reduce task.
  </description>
</property>

  • I set up hadoop location under mapreduce perspective in Eclipse as

    Location Name: local Map Reduce Master

    • Host: localhost
    • port: 54310

    DFS Master

    • Host: localhost
    • port: 54311

  • When I try to connect it gives error saying:

Error: Call to localhost/127.0.0.1:54311 failed on local exception: java.io.EOFException

  • Can someone please help me to resolve this issue?

Thank you

解决方案

Unfortunately eclipse plugin is outdated, few months ago I managed to get it working properly, but that was a nightmare, I had to change a lot of parameters there : (

I would recommend to use a web based hdfs browsing: go to http://localhost:50070 or any other host you have installed hadoop, and click on "Browse the filesystem" link (the first blue link from above), you will see all you need.

这篇关于Eclipse的插件的Hadoop和说QUOT; java.io.EOFException&QUOT;在试图连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆