Hadoop INFO ipc.Client:重试连接到服务器localhost / 127.0.0.1:9000(Hadoop INFO ipc.Client: Retrying connect to server localhost/127.0.0.1:9000)
我阅读了有关Hadoop的HDFS配置问题的其他帖子。 但是,它们都没有帮助。 所以,我发布了我的问题。 我按照本教程了解了hadoop v1.2.1。 当我运行hadoop fs -ls命令时,我遇到了这个错误:
16/08/29 15:20:35 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
我的core-site.xml文件是:
<configuration> <property> <name>fs.default.name</name> <value>hdfs://localhost:9000</value> </property> <property> <name>hadoop.tmp.dir</name> <value>/mnt/miczfs/hadoop/tmp/${user.name}</value> </property> </configuration>
另外,我的hdfs-site.xml文件如下:
<configuration> <property> <name>dfs.replication</name> <value>1</value> </property> <property> <name>dfs.name.dir</name> <value>/mnt/miczfs/hadoop/hdfs/${user.name}/namenode</value> </property> <property> <name>dfs.secondary.http.address</name> <value>localhost:0</value> </property> <property> <name>dfs.data.dir</name> <value>/mnt/miczfs/hadoop/hdfs/${user.name}/datanode</value> </property> <property> <name>dfs.datanode.address</name> <value>localhost:0</value> </property> <property> <name>dfs.datanode.http.address</name> <value>localhost:0</value> </property> <property> <name>dfs.datanode.ipc.address</name> <value>localhost:0</value> </property> </configuration>
和/ etc / hosts是这样的:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 172.31.1.1 micrasrelmond.local micrasrelmond #Generated-by-micctrl 172.31.1.1 mic0.local mic0 #Generated-by-micctrl
如果有可能,请帮助我。 谢谢
I read other posts about the HDFS configuration problem with Hadoop. However, none of them was helpful. So, I post my question. I followed this tutorial for hadoop v1.2.1. When I am running hadoop fs -ls command I've got this error:
16/08/29 15:20:35 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
My core-site.xml file is:
<configuration> <property> <name>fs.default.name</name> <value>hdfs://localhost:9000</value> </property> <property> <name>hadoop.tmp.dir</name> <value>/mnt/miczfs/hadoop/tmp/${user.name}</value> </property> </configuration>
Also, my hdfs-site.xml file is as follow:
<configuration> <property> <name>dfs.replication</name> <value>1</value> </property> <property> <name>dfs.name.dir</name> <value>/mnt/miczfs/hadoop/hdfs/${user.name}/namenode</value> </property> <property> <name>dfs.secondary.http.address</name> <value>localhost:0</value> </property> <property> <name>dfs.data.dir</name> <value>/mnt/miczfs/hadoop/hdfs/${user.name}/datanode</value> </property> <property> <name>dfs.datanode.address</name> <value>localhost:0</value> </property> <property> <name>dfs.datanode.http.address</name> <value>localhost:0</value> </property> <property> <name>dfs.datanode.ipc.address</name> <value>localhost:0</value> </property> </configuration>
and the /etc/hosts is this:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 172.31.1.1 micrasrelmond.local micrasrelmond #Generated-by-micctrl 172.31.1.1 mic0.local mic0 #Generated-by-micctrl
If it is possible, please help me. Thanks
原文:
最满意答案
您可以创建一个新包,将.dcp添加到其requires子句,向其添加一个新单元并在uses子句中使用代码完成 - 它将显示所有必需包中的所有可用单元。 如果.dcp是唯一必需的包,并且您将其设置为按范围排序(右键单击下拉列表),则.dcp中的单位应位于顶部。
我不确定这是否适用于Delphi 7。 它适用于Delphi 2007。
You could create a new package, add your .dcp to its requires clause, add a new unit to it and use code completion in the uses clause - it will show you all available units in all required packages. If your .dcp is the only required package and you set it to display sorted by scope (right-click in the dropdown) then the units from your .dcp should be on top.
I'm not sure if this works in Delphi 7 already. It works in Delphi 2007.
相关问答
更多-
你们都用什么软件开发sql数据库?[2023-05-19]
delphi -
下列中不属于面向对象的编程语言的是?[2022-05-30]
a -
好吧,没有人回答,所以我会把它放在这里对未来的人有所帮助: - 清理Windows VirtualStore时,清理具有旧版本DLL的破碎系统,包括TeeChart,FastReport,Indy等,这些DLL往往会涉及混乱,因为它们既可以作为“delphi附带的开箱包”以及经常作为升级版本安装,如果您直接从供应商处购买并安装它们,或者第三,您可能会在公司的超级组件目录中拥有自己的编译副本。 - 当搜索重复或过期的BPL时,在Windows中进行文件搜索不会在虚拟存储中查找,您必须手动为您的流程或用户或程序 ...
-
PATH env变量必须包含bpl文件夹。 设置通常会为您添加此文件夹。 如果不是这样,那么Delphi将找不到bpls,因为它们是作为dll加载的。 LoadLibrary不关心Package输出目录。 但是路径变量的大小有限制。 所以这可以解释为什么在你的全新Delphi安装中缺少这个。 在最新版本的Delphi中,您可以转到工具 - >选项 - >环境变量并添加path用户覆盖而不是修改env路径: C:\Users\Public\Documents\Embarcadero\Studio\15.0\B ...
-
Delphi以不同的单元枚举(Delphi Enums in Different Units)[2022-11-11]
默认情况下,WSDL-Importer生成带有作用域枚举的代码。 这要求任何枚举先于其类型。 在不知道实际导入文件的情况下,我想这应该适用: uses SOAPAPI_Unit .... procedure TForm1.Button2Click(Sender: TObject); begin Document.Extension := Extension.pdf; end; The WSDL-Importer by default produces code with scoped enums a ... -
您应该明确引用DPK文件的包含部分中的对话框中提到的每个单位。 该对话框仅显示包含在内的单元(=未包含在内),并建议要求它们最初属于的包。 You should explicitly reference each of the units mentioned in the dialog in the contains section of the DPK file. The dialog only shows units that are implicitly (= not listed in contai ...
-
+ Daniela Osterhagen在这篇Google+信息中回答了这个问题: 这可能是编译器找不到的indycore.dcp文件。 库文件路径中是否存在该文件? 不,这不对! 看看你发布的命令行! 它不包含c:\ delphi \ delphi2010 \ lib \ indy10! 我只是暂时从Delphi 2010安装中的库路径中删除该目录,并得到相同的错误。 事实证明,这正是问题所在。 $(BDS)\ libs \ Indy10从库路径中缺失。 我不知道这是怎么发生的,因为如上所述,这是一个全新 ...
-
Delphi 10.1没有找到添加了已安装软件包的单元(Delphi 10.1 doesn't find the units added with an installed package)[2022-03-24]
很简单,我只需要将包的单元添加到库路径(Tools-> Options-> Delphi Options-> Library)。 工作。 感谢KenWhite。 Quite easy, I just had to add the units of the package to the library path (Tools->Options->Delphi Options->Library). Worked. Thanks to KenWhite. -
在Delphi 7中,如何跟踪编译单元的顺序?(In Delphi 7, how do I trace the order in which the units are being compiled?)[2023-08-02]
要跟踪订单,您可以尝试使用Process Monitor之类的工具来监控磁盘I / O. Delphi本身并不记录这种信息。 为了解释为什么该单元被包含在您的程序中,有一种更简单的方法。 只需删除(或隐藏)单位即可。 编译将失败,编译器将指向提及不存在单元的uses子句。 To trace the order, you might try using a tool like Process Monitor to monitor disk I/O. Delphi doesn't log that kind o ... -
如何获取Delphi编译包中的单元列表(.dcp文件)(How to get list of units in a Delphi Compiled Package (.dcp file))[2022-12-03]
您可以创建一个新包,将.dcp添加到其requires子句,向其添加一个新单元并在uses子句中使用代码完成 - 它将显示所有必需包中的所有可用单元。 如果.dcp是唯一必需的包,并且您将其设置为按范围排序(右键单击下拉列表),则.dcp中的单位应位于顶部。 我不确定这是否适用于Delphi 7。 它适用于Delphi 2007。 You could create a new package, add your .dcp to its requires clause, add a new unit to i ...