首页 \ 问答 \ Hadoop DataNode不会使用远程IPC服务器地址(Hadoop DataNode won't use remote IPC Server adress)

Hadoop DataNode不会使用远程IPC服务器地址(Hadoop DataNode won't use remote IPC Server adress)

对于“快速”概念验证,我想通过连接两个虚拟机来建立一个迷你Hadoop 0.18集群,我发现这些虚拟机是在Yahoo的伪分布式模式下配置的。

在我的hadoop-vm-1上,我在该机器上启动了一个带有主节点和从属DataNode和TaskTracker的完整集群。 然后我将第二个VM作为hadoop-vm-2,并希望它托管第二个DataNode和TaskTracker,它将连接到hadoop-vm-1并添加到该集群。

不幸的是,我无法启动第二个DataNode,因为它想要连接到本地IPC服务器。 这是我希望它连接到hadoop-vm-1的地方 。 日志写如下:

2013-02-07 19:55:29,954 INFO org.apache.hadoop.ipc.Client:重试连接到服务器:/192.168.17.135:9000。 已经尝试了9次。
2013-02-07 19:55:29,958 ERROR org.apache.hadoop.dfs.DataNode:java.io.IOException:本地异常调用失败
..
引起:java.net.ConnectException:连接被拒绝

而不是IP 192.168.17.135( hadoop-vm-2 ),应该使用hadoop-vm-1的 192.168.17.134。

我想我正确配置了slave的hadoop-site.xxml:

<configuration>
<property>
  <name>fs.default.name</name>
  <value>hdfs://hadoop-vm-1/</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>

<property>
  <name>mapred.job.tracker</name>
  <value>hadoop-vm-1:9001</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>

</configuration>

当然我配置了hosts文件:

127.0.0.1   localhost
127.0.1.1   hadoop-vm-2.localdomain hadoop-vm-2
192.168.17.134 hadoop-vm-1

有任何想法吗? 提前致谢 :-)


For a "fast" Proof-of-concept I wanted to set up a mini Hadoop 0.18 cluster, by connecting two virtual machines, which I found configured in pseudo-distributed mode at Yahoo.

On my hadoop-vm-1 I start a full cluster with master nodes and slave DataNode and TaskTracker on that machine. Then I took the second VM as hadoop-vm-2 and wanted it to host a 2nd DataNode and TaskTracker which would connect to hadoop-vm-1 and add to this cluster.

Unfortunately, I can't start the 2nd DataNode, because it want's to connect to a local IPC server. This is the place where I would expect it to connect to hadoop-vm-1. The log writes as follows:

2013-02-07 19:55:29,954 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: /192.168.17.135:9000. Already tried 9 time(s).
2013-02-07 19:55:29,958 ERROR org.apache.hadoop.dfs.DataNode: java.io.IOException: Call failed on local exception
..
Caused by: java.net.ConnectException: Connection refused

Instead of the IP 192.168.17.135 (which is hadoop-vm-2), 192.168.17.134 from hadoop-vm-1 should have been used.

I think I configured the slave's hadoop-site.xxml correctly:

<configuration>
<property>
  <name>fs.default.name</name>
  <value>hdfs://hadoop-vm-1/</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>

<property>
  <name>mapred.job.tracker</name>
  <value>hadoop-vm-1:9001</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>

</configuration>

And of course I configured the hosts file:

127.0.0.1   localhost
127.0.1.1   hadoop-vm-2.localdomain hadoop-vm-2
192.168.17.134 hadoop-vm-1

Any Ideas? thanks in advance :-)


原文:https://stackoverflow.com/questions/14771256
更新时间:2021-12-02 16:12

最满意答案

我认为你的意思是“Android Studio”而不是ADT,所以,我也试着在几周前做到这一点,但我没有好结果,所以我这样做了。

  1. 我在Eclipse中创建了一个与原始项目同名的新Android项目
  2. 然后我创建了与原始项目相同的包
  3. 然后我复制了所有.java文件(源)fkeeping相同的结构
  4. 最后,我添加了媒体元素和库。
  5. 跳到它的工作,我按下Build按钮和Vualá!!

您可以从Eclipse导入到Android Studio,但我没有找到更好的方法来执行逆操作。

希望这对你有所帮助


I think you mean "Android Studio" instead of ADT, so, I tried to do that also few weeks ago, but I have no good results, so I did this.

  1. I created a new Android project in Eclipse with the same name of the original project
  2. Then i created the same packages like the original project
  3. Then I copied all the .java files (sources) fkeeping the same structure
  4. Finally I added the media elements and the libraries.
  5. Hopping it to work, I pressed the Build button and Vualá!!

You can import from Eclipse to Android Studio but I haven't found a better way to do the inverse opperation.

Hope this helps you

相关问答

更多

相关文章

更多

最新问答

更多
  • h2元素推动其他h2和div。(h2 element pushing other h2 and div down. two divs, two headers, and they're wrapped within a parent div)
  • 创建一个功能(Create a function)
  • 我投了份简历,是电脑编程方面的学徒,面试时说要培训三个月,前面
  • PDO语句不显示获取的结果(PDOstatement not displaying fetched results)
  • Qt冻结循环的原因?(Qt freezing cause of the loop?)
  • TableView重复youtube-api结果(TableView Repeating youtube-api result)
  • 如何使用自由职业者帐户登录我的php网站?(How can I login into my php website using freelancer account? [closed])
  • SQL Server 2014版本支持的最大数据库数(Maximum number of databases supported by SQL Server 2014 editions)
  • 我如何获得DynamicJasper 3.1.2(或更高版本)的Maven仓库?(How do I get the maven repository for DynamicJasper 3.1.2 (or higher)?)
  • 以编程方式创建UITableView(Creating a UITableView Programmatically)
  • 如何打破按钮上的生命周期循环(How to break do-while loop on button)
  • C#使用EF访问MVC上的部分类的自定义属性(C# access custom attributes of a partial class on MVC with EF)
  • 如何获得facebook app的publish_stream权限?(How to get publish_stream permissions for facebook app?)
  • 如何防止调用冗余函数的postgres视图(how to prevent postgres views calling redundant functions)
  • Sql Server在欧洲获取当前日期时间(Sql Server get current date time in Europe)
  • 设置kotlin扩展名(Setting a kotlin extension)
  • 如何并排放置两个元件?(How to position two elements side by side?)
  • 如何在vim中启用python3?(How to enable python3 in vim?)
  • 在MySQL和/或多列中使用多个表用于Rails应用程序(Using multiple tables in MySQL and/or multiple columns for a Rails application)
  • 如何隐藏谷歌地图上的登录按钮?(How to hide the Sign in button from Google maps?)
  • Mysql左连接旋转90°表(Mysql Left join rotate 90° table)
  • dedecms如何安装?
  • 在哪儿学计算机最好?
  • 学php哪个的书 最好,本人菜鸟
  • 触摸时不要突出显示表格视图行(Do not highlight table view row when touched)
  • 如何覆盖错误堆栈getter(How to override Error stack getter)
  • 带有ImageMagick和许多图像的GIF动画(GIF animation with ImageMagick and many images)
  • USSD INTERFACE - > java web应用程序通信(USSD INTERFACE -> java web app communication)
  • 电脑高中毕业学习去哪里培训
  • 正则表达式验证SMTP响应(Regex to validate SMTP Responses)