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 refusedInstead 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
最满意答案
我认为你的意思是“Android Studio”而不是ADT,所以,我也试着在几周前做到这一点,但我没有好结果,所以我这样做了。
- 我在Eclipse中创建了一个与原始项目同名的新Android项目
- 然后我创建了与原始项目相同的包
- 然后我复制了所有.java文件(源)fkeeping相同的结构
- 最后,我添加了媒体元素和库。
- 跳到它的工作,我按下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.
- I created a new Android project in Eclipse with the same name of the original project
- Then i created the same packages like the original project
- Then I copied all the .java files (sources) fkeeping the same structure
- Finally I added the media elements and the libraries.
- 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
相关问答
更多-
android 3d游戏开发 所需要的软件[2023-10-23]
eclipse -
安卓应用程序开发使用哪个开发工具最好?[2022-11-21]
eclipse -
安卓手机编程现在用什么软件?并求下载地址。[2022-05-06]
eclipse -
今天我和我的一个朋友面临着同样的问题,所以我尝试了许多事情,如重新启动eclipse , 检查更新等,但没有一个为我工作。 然后我找到了一个解决方案从这里 ,它的工作作为一个魅力为我,也为我的朋友。 请按照以下步骤操作: 启动Eclipse,然后选择帮助>安装新软件。 点击右上角的添加。 在显示的“添加存储库”对话框中,为“名称”输入“ADT Plugin”,并为“位置”输入以下URL: https://dl-ssl.google.com/android/eclipse/ 单击确定。 如果您无法获取插件,请 ...
-
昨天我解决了这个问题。 按照以下步骤: 帮助 - >安装新软件 - >添加 - >( 给任何名称假设 NewUpdate ) - >添加此网址: https : NewUpdate - >确定 现在它将列出可用的更新,这应该是最好的 选择列表项让它安装。 Eclipse将重新启动并完成。 我希望这将有助于你:) Yet, if someone is facing this issue, Then follow steps below: download new stand alone SDK from an ...
-
我认为你的意思是“Android Studio”而不是ADT,所以,我也试着在几周前做到这一点,但我没有好结果,所以我这样做了。 我在Eclipse中创建了一个与原始项目同名的新Android项目 然后我创建了与原始项目相同的包 然后我复制了所有.java文件(源)fkeeping相同的结构 最后,我添加了媒体元素和库。 跳到它的工作,我按下Build按钮和Vualá!! 您可以从Eclipse导入到Android Studio,但我没有找到更好的方法来执行逆操作。 希望这对你有所帮助 I think yo ...
-
在Lint警告窗口中,选择警告并单击“忽略类型按钮”(右上角,看起来像橡皮擦或其他东西)。 之后,请访问http://b.android.com并提交一个错误。 更新:ADT无法刷新非Java和非XML文件,下面是问题的链接: http://code.google.com/p/android/issues/detail?id=23196 按照较新的答案建议,单击“刷新”将清除错误。 In the Lint warnings window, select the warning and click the ' ...
-
实际上不,工具套件不会安装服务器运行时环境。 因此,您可以选择在您的环境中启动并运行WebSphere。 WebSphere Liberty概要文件 - 您可以从Eclipse Market Place安装,只需搜索WebSphere Liberty并安装它,您应该很高兴。 您应该注意到Liberty是一个完整的新产品,与大公司更常用的WebSphere ND不同。 您可以在http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/topic/com.ibm.websph ...
-
通过在eclipse中设置网络代理来解决该问题。 在eclipse中设置你的网络代理 - >首选项 - >一般 - >网络连接,然后重新安装插件,tata ~~~问题解决了:) The problem is resolved by setting network proxy in eclipse. Set your network proxy in eclipse-->preferences-->general-->network connections, then re-install the plug- ...
-
不,编译后编译器会删除它们。 但是可能会出现两个问题: 代码杂乱 如果你从jar导入一些类,后来删除了jar而不是import,那么你可能会遇到编译时错误 No, compiler removes them after compilation. But two issues that might come up: code clutter If you import some classes from jar and later removed jar but not imports, then you m ...