be instead byof与repla...

& “American schools do ...”习题详情
276位同学学习过此题,做题成功率66.6%
American schools do not have separate classes for boys and girls. If boys want to cook or to sew, they can learn these things in classes that are no longer just for girls. If girls want to repair cars, they can now learn this in school. Most students like to have boys and girls on the same baseball team.Many boys and girls dress alike in school. They were blue jeans and sport shirts. Some have long hair and some have short hair. Sometimes a boy has longer hair than a girl.Even the language is different. Students learn to say fire fighter instead of fireman, police officer instead of policeman, and letter carrier instead of mailman. A person does not need to be a man to fight a fire or to deliver the mail.Most people think that these changes are good. They give all people an equal chance to be happy and to do what they want to do with their lives. Fathers like to tell their sons that they can grow up to be president. Today, mothers can tell the same things to there daughters.【小题1】Students in American schools learn to say police officer instead of policeman because&&&&.A.boys don’t like to be a policemanB.girls don’t like to be a policemanC.police officer sounds better than policemanD.a police officer can be a policeman or policwoman【小题2】 We may infer from the text that in the past in American schools&&&&.A.there were many differences between boys and girlsB.boys could do everything but girls couldn’tC.boys and girls were the same in everythingD.girls only learned how to sew and cook【小题3】The underlined word “ They” in the last paragraph refers to &&&&.A.American schoolsB.these changesC.most peopleD.American students【小题4】What does “mailman” mean?A.MilkmanB.PostmanC.WriterD.Reporter【小题5】What do most people think of the changes in American schools?A.SurprisingB.StrangeC.GoodD.BadD&
本题难度:一般
题型:解答题&|&来源:2010-阅读理解
分析与解答
习题“American schools do not have separate classes for boys and girls. If boys want to cook or to sew, they ca...”的分析与解答如下所示:
【小题1】确认该题答案的信息为:A person does not need to be a man to fight a fire or to deliver the mail.【小题2】全文论述了今日美国学校男生与女生的平等,同时也就暗示了昔日并非如此。第一段中的 “no longer”&最后一段中的 “changes” 等词也是确定该答案的重要依据。【小题3】根据语境,“They” 指上文中的 “these changes” 。【小题4】根据前面的 “letter carrier”, 可推断 “mailman” 为“邮递员”。【小题5】确认该题答案的信息为:Most people think that these charges are good.
找到答案了,赞一个
如发现试题中存在任何错误,请及时纠错告诉我们,谢谢你的支持!
American schools do not have separate classes for boys and girls. If boys want to cook or to sew, th...
错误类型:
习题内容残缺不全
习题有文字标点错误
习题内容结构混乱
习题对应知识点不正确
分析解答残缺不全
分析解答有文字标点错误
分析解答结构混乱
习题类型错误
错误详情:
我的名号(最多30个字):
看完解答,记得给个难度评级哦!
“American schools do ...”的最新评论
欢迎来到乐乐题库,查看习题“American schools do not have separate classes for boys and girls. If boys want to cook or to sew, they can learn these things in classes that are no longer just for girls. If girls want to repair cars, they can now learn this in school. Most students like to have boys and girls on the same baseball team.Many boys and girls dress alike in school. They were blue jeans and sport shirts. Some have long hair and some have short hair. Sometimes a boy has longer hair than a girl.Even the language is different. Students learn to say fire fighter instead of fireman, police officer instead of policeman, and letter carrier instead of mailman. A person does not need to be a man to fight a fire or to deliver the mail.Most people think that these changes are good. They give all people an equal chance to be happy and to do what they want to do with their lives. Fathers like to tell their sons that they can grow up to be president. Today, mothers can tell the same things to there daughters.【小题1】Students in American schools learn to say police officer instead of policeman because____.A.boys don’t like to be a policemanB.girls don’t like to be a policemanC.police officer sounds better than policemanD.a police officer can be a policeman or policwoman【小题2】 We may infer from the text that in the past in American schools____.A.there were many differences between boys and girlsB.boys could do everything but girls couldn’tC.boys and girls were the same in everythingD.girls only learned how to sew and cook【小题3】The underlined word “ They” in the last paragraph refers to ____.A.American schoolsB.these changesC.most peopleD.American students【小题4】What does “mailman” mean?A.MilkmanB.PostmanC.WriterD.Reporter【小题5】What do most people think of the changes in American schools?A.SurprisingB.StrangeC.GoodD.Bad”的答案、考点梳理,并查找与习题“American schools do not have separate classes for boys and girls. If boys want to cook or to sew, they can learn these things in classes that are no longer just for girls. If girls want to repair cars, they can now learn this in school. Most students like to have boys and girls on the same baseball team.Many boys and girls dress alike in school. They were blue jeans and sport shirts. Some have long hair and some have short hair. Sometimes a boy has longer hair than a girl.Even the language is different. Students learn to say fire fighter instead of fireman, police officer instead of policeman, and letter carrier instead of mailman. A person does not need to be a man to fight a fire or to deliver the mail.Most people think that these changes are good. They give all people an equal chance to be happy and to do what they want to do with their lives. Fathers like to tell their sons that they can grow up to be president. Today, mothers can tell the same things to there daughters.【小题1】Students in American schools learn to say police officer instead of policeman because____.A.boys don’t like to be a policemanB.girls don’t like to be a policemanC.police officer sounds better than policemanD.a police officer can be a policeman or policwoman【小题2】 We may infer from the text that in the past in American schools____.A.there were many differences between boys and girlsB.boys could do everything but girls couldn’tC.boys and girls were the same in everythingD.girls only learned how to sew and cook【小题3】The underlined word “ They” in the last paragraph refers to ____.A.American schoolsB.these changesC.most peopleD.American students【小题4】What does “mailman” mean?A.MilkmanB.PostmanC.WriterD.Reporter【小题5】What do most people think of the changes in American schools?A.SurprisingB.StrangeC.GoodD.Bad”相似的习题。扫二维码下载作业帮
2亿+学生的选择
下载作业帮安装包
扫二维码下载作业帮
2亿+学生的选择
( )fire,all exits must be kept clear.A.In place of B.Instead of C.In case of D.In spite of( )fire,all exits must be kept clear.A.In place of B.Instead of C.In case of D.In spite of怎样分析此题?请从句子成分,语法结构,时态等详细的分析.越详细越好.句子翻译和各个答案的分析也要.急.如有好回答,
扫二维码下载作业帮
2亿+学生的选择
选c1 in place of 代替2 instead of 代替3in case of 以防万一4 in spite of 不管句子意思,以防火灾,所有安全出口必须干净畅通其实从意思上就能选择了,不要搞得太复杂
句子翻译。
句子的意思,大概是以防火灾,所以的安全出口(安全门)必须干净畅通(无阻)。
为您推荐:
其他类似问题
C以防万一为了防止火灾,所有的出口都必须保持干净。in place of ;instead of代替的意思 in spite of不管不顾的意思
C句子成分 这里不需要一个句子 要填一个介词 关键是分析句子意思以防火灾,保持清洁完全是看句子意思的
扫描下载二维码扫二维码下载作业帮
拍照搜题,秒出答案,一键查看所有搜题记录
下载作业帮安装包
扫二维码下载作业帮
拍照搜题,秒出答案,一键查看所有搜题记录
be instead of与replace语法上有什么区别(初中语法)
扫二维码下载作业帮
拍照搜题,秒出答案,一键查看所有搜题记录
如:(1)I will clean the window instead of him.(2)We will skate instead of playing footballinstead ofprep.(介词)代替;宁愿:ordered chicken instead of fish.点了鸡而不是鱼insteadadv.(副词)代替; 顶替; 更换If you cannot go,he'll go instead of you.如果你不能去,他愿替你去.If there is no coal,oil can be used instead.如果没有煤,可以用石油来代替.replace:[ ri(:)'pleis ] v.取代[ 形容词replaceable ][ 名词replacer ][ 过去式replaced 过去分词replaced 现在分词replacing 第三人称单数replaces ]例句与用法1.He replaced the book in the shelf.他把书放回到书架上.2.We've replaced the old adding machine with a computer.我们用电脑取代了老式的加法计算器.
为您推荐:
其他类似问题
扫描下载二维码54036人阅读
hadoop+hbase历程(2)
&1、&could only be replicated to 0 nodes, instead of 1&异常
(1)异常描述
上面配置都正确无误,并且,已经完成了如下运行步骤:
[root@localhost hadoop-0.20.0]# bin/hadoop namenode -format
[root@localhost hadoop-0.20.0]# bin/start-all.sh
这时,看到5个进程jobtracker、tasktracker、namenode、datanode、secondarynamenode已经给出了启动成功信息,但是运行jps命令查看进程的时候,发现并不是那样,如下所示:
4281 Jps4007 SecondaryNameNode3771 NameNode
可见,只有两个进程启动成功了,其它的并没有成功,如果你再继续向下执行,准备运行wordcount实例之前执行上传文件的命令:
[root@localhost hadoop-0.20.0]# bin/hadoop fs -put input in
现在就会抛出一堆异常了,如下所示:
10/08/02 15:36:04 INFO hdfs.DFSClient: org.apache.hadoop.ipc.RemoteException: java.io.IOException: File /user/root/in/LICENSE.txt could only be replicated to 0 nodes, instead of 1&&&&&&& at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:1256)&&&&&&& at org.apache.hadoop.hdfs.server.namenode.NameNode.addBlock(NameNode.java:422)&&&&&&& at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&&&&&&& at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&&&&&&& at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&&&&&&& at java.lang.reflect.Method.invoke(Method.java:597)&&&&&&& at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:508)&&&&&&& at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:959)&&&&&&& at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:955)&&&&&&& at java.security.AccessController.doPrivileged(Native Method)&&&&&&& at javax.security.auth.Subject.doAs(Subject.java:396)&&&&&&& at org.apache.hadoop.ipc.Server$Handler.run(Server.java:953)
&&&&&&& at org.apache.hadoop.ipc.Client.call(Client.java:739)&&&&&&& at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:220)&&&&&&& at $Proxy0.addBlock(Unknown Source)&&&&&&& at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&&&&&&& at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&&&&&&& at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&&&&&&& at java.lang.reflect.Method.invoke(Method.java:597)&&&&&&& at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:82)&&&&&&& at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:59)&&&&&&& at $Proxy0.addBlock(Unknown Source)&&&&&&& at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.locateFollowingBlock(DFSClient.java:2873)&&&&&&& at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.nextBlockOutputStream(DFSClient.java:2755)&&&&&&& at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.access$2000(DFSClient.java:2046)&&&&&&& at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream$DataStreamer.run(DFSClient.java:2232)
10/08/02 15:36:04 WARN hdfs.DFSClient: NotReplicatedYetException sleeping /user/root/in/LICENSE.txt retries left 410/08/02 15:36:04 INFO hdfs.DFSClient: org.apache.hadoop.ipc.RemoteException: java.io.IOException: File /user/root/in/LICENSE.txt could only be replicated to 0 nodes, instead of 1&&&&&&& at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:1256)&&&&&&& at org.apache.hadoop.hdfs.server.namenode.NameNode.addBlock(NameNode.java:422)&&&&&&& at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&&&&&&& at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&&&&&&& at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&&&&&&& at java.lang.reflect.Method.invoke(Method.java:597)&&&&&&& at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:508)&&&&&&& at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:959)&&&&&&& at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:955)&&&&&&& at java.security.AccessController.doPrivileged(Native Method)&&&&&&& at javax.security.auth.Subject.doAs(Subject.java:396)&&&&&&& at org.apache.hadoop.ipc.Server$Handler.run(Server.java:953)
&&&&&&& at org.apache.hadoop.ipc.Client.call(Client.java:739)&&&&&&& at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:220)&&&&&&& at $Proxy0.addBlock(Unknown Source)&&&&&&& at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&&&&&&& at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&&&&&&& at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&&&&&&& at java.lang.reflect.Method.invoke(Method.java:597)&&&&&&& at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:82)&&&&&&& at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:59)&&&&&&& at $Proxy0.addBlock(Unknown Source)&&&&&&& at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.locateFollowingBlock(DFSClient.java:2873)&&&&&&& at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.nextBlockOutputStream(DFSClient.java:2755)&&&&&&& at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.access$2000(DFSClient.java:2046)&&&&&&& at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream$DataStreamer.run(DFSClient.java:2232)
10/08/02 15:36:04 WARN hdfs.DFSClient: NotReplicatedYetException sleeping /user/root/in/LICENSE.txt retries left 310/08/02 15:36:05 INFO hdfs.DFSClient: org.apache.hadoop.ipc.RemoteException: java.io.IOException: File /user/root/in/LICENSE.txt could only be replicated to 0 nodes, instead of 1&&&&&&& at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:1256)&&&&&&& at org.apache.hadoop.hdfs.server.namenode.NameNode.addBlock(NameNode.java:422)&&&&&&& at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&&&&&&& at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&&&&&&& at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&&&&&&& at java.lang.reflect.Method.invoke(Method.java:597)&&&&&&& at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:508)&&&&&&& at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:959)&&&&&&& at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:955)&&&&&&& at java.security.AccessController.doPrivileged(Native Method)&&&&&&& at javax.security.auth.Subject.doAs(Subject.java:396)&&&&&&& at org.apache.hadoop.ipc.Server$Handler.run(Server.java:953)
&&&&&&& at org.apache.hadoop.ipc.Client.call(Client.java:739)&&&&&&& at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:220)&&&&&&& at $Proxy0.addBlock(Unknown Source)&&&&&&& at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&&&&&&& at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&&&&&&& at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&&&&&&& at java.lang.reflect.Method.invoke(Method.java:597)&&&&&&& at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:82)&&&&&&& at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:59)&&&&&&& at $Proxy0.addBlock(Unknown Source)&&&&&&& at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.locateFollowingBlock(DFSClient.java:2873)&&&&&&& at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.nextBlockOutputStream(DFSClient.java:2755)&&&&&&& at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.access$2000(DFSClient.java:2046)&&&&&&& at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream$DataStreamer.run(DFSClient.java:2232)
10/08/02 15:36:05 WARN hdfs.DFSClient: NotReplicatedYetException sleeping /user/root/in/LICENSE.txt retries left 210/08/02 15:36:07 INFO hdfs.DFSClient: org.apache.hadoop.ipc.RemoteException: java.io.IOException: File /user/root/in/LICENSE.txt could only be replicated to 0 nodes, instead of 1&&&&&&& at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:1256)&&&&&&& at org.apache.hadoop.hdfs.server.namenode.NameNode.addBlock(NameNode.java:422)&&&&&&& at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&&&&&&& at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&&&&&&& at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&&&&&&& at java.lang.reflect.Method.invoke(Method.java:597)&&&&&&& at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:508)&&&&&&& at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:959)&&&&&&& at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:955)&&&&&&& at java.security.AccessController.doPrivileged(Native Method)&&&&&&& at javax.security.auth.Subject.doAs(Subject.java:396)&&&&&&& at org.apache.hadoop.ipc.Server$Handler.run(Server.java:953)
&&&&&&& at org.apache.hadoop.ipc.Client.call(Client.java:739)&&&&&&& at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:220)&&&&&&& at $Proxy0.addBlock(Unknown Source)&&&&&&& at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&&&&&&& at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&&&&&&& at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&&&&&&& at java.lang.reflect.Method.invoke(Method.java:597)&&&&&&& at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:82)&&&&&&& at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:59)&&&&&&& at $Proxy0.addBlock(Unknown Source)&&&&&&& at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.locateFollowingBlock(DFSClient.java:2873)&&&&&&& at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.nextBlockOutputStream(DFSClient.java:2755)&&&&&&& at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.access$2000(DFSClient.java:2046)&&&&&&& at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream$DataStreamer.run(DFSClient.java:2232)
10/08/02 15:36:07 WARN hdfs.DFSClient: NotReplicatedYetException sleeping /user/root/in/LICENSE.txt retries left 110/08/02 15:36:10 WARN hdfs.DFSClient: DataStreamer Exception: org.apache.hadoop.ipc.RemoteException: java.io.IOException: File /user/root/in/LICENSE.txt could only be replicated to 0 nodes, instead of 1&&&&&&& at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:1256)&&&&&&& at org.apache.hadoop.hdfs.server.namenode.NameNode.addBlock(NameNode.java:422)&&&&&&& at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&&&&&&& at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&&&&&&& at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&&&&&&& at java.lang.reflect.Method.invoke(Method.java:597)&&&&&&& at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:508)&&&&&&& at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:959)&&&&&&& at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:955)&&&&&&& at java.security.AccessController.doPrivileged(Native Method)&&&&&&& at javax.security.auth.Subject.doAs(Subject.java:396)&&&&&&& at org.apache.hadoop.ipc.Server$Handler.run(Server.java:953)
&&&&&&& at org.apache.hadoop.ipc.Client.call(Client.java:739)&&&&&&& at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:220)&&&&&&& at $Proxy0.addBlock(Unknown Source)&&&&&&& at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&&&&&&& at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&&&&&&& at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&&&&&&& at java.lang.reflect.Method.invoke(Method.java:597)&&&&&&& at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:82)&&&&&&& at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:59)&&&&&&& at $Proxy0.addBlock(Unknown Source)&&&&&&& at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.locateFollowingBlock(DFSClient.java:2873)&&&&&&& at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.nextBlockOutputStream(DFSClient.java:2755)&&&&&&& at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream.access$2000(DFSClient.java:2046)&&&&&&& at org.apache.hadoop.hdfs.DFSClient$DFSOutputStream$DataStreamer.run(DFSClient.java:2232)
10/08/02 15:36:10 WARN hdfs.DFSClient: Error Recovery for block null bad datanode[0] nodes == null10/08/02 15:36:10 WARN hdfs.DFSClient: Could not get block locations. Source file "/user/root/in/LICENSE.txt" - Aborting...put: java.io.IOException: File /user/root/in/LICENSE.txt could only be replicated to 0 nodes, instead of 1
看到&could only be replicated to 0 nodes, instead of 1&这句信息的时候,你可能会首先想到是否hdfs-site.xml配置文件中的属性dfs.replication配置错误,但事实上并不是这样。
这时,就要查看启动日志了,我的是位于/root/hadoop-0.20.0/logs下面,如下所示:
hadoop-root-datanode-localhost.log&&& hadoop-root-namenode-localhost.log&&&&&&&&&& hadoop-root-tasktracker-localhost.log
hadoop-root-datanode-localhost.out&&& hadoop-root-namenode-localhost.out&&&&&&&&&& hadoop-root-tasktracker-localhost.outhadoop-root-jobtracker-localhost.log& hadoop-root-secondarynamenode-localhost.log& historyhadoop-root-jobtracker-localhost.out& hadoop-root-secondarynamenode-localhost.out
查看hadoop-root-datanode-localhost.log日志文件,看到异常信息:
15:38:34,642 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: STARTUP_MSG: /************************************************************STARTUP_MSG: Starting DataNodeSTARTUP_MSG:&& host = localhost/127.0.0.1STARTUP_MSG:&& args = []STARTUP_MSG:&& version = 0.20.0STARTUP_MSG:&& build =
-r 763504; compiled by 'ndaley' on Thu Apr& 9 05:18:40 UTC 2009************************************************************/ 15:38:35,381 ERROR org.apache.hadoop.hdfs.server.datanode.DataNode: java.io.IOException: Incompatible namespaceIDs in /tmp/hadoop-root/dfs/data: namenode namespaceID = ; datanode namespaceID = &&&&&&& at org.apache.hadoop.hdfs.server.datanode.DataStorage.doTransition(DataStorage.java:233)&&&&&&& at org.apache.hadoop.hdfs.server.datanode.DataStorage.recoverTransitionRead(DataStorage.java:148)&&&&&&& at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:298)&&&&&&& at org.apache.hadoop.hdfs.server.datanode.DataNode.&init&(DataNode.java:216)&&&&&&& at org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:1283)&&&&&&& at org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:1238)&&&&&&& at org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:1246)&&&&&&& at org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:1368)
15:38:35,382 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: SHUTDOWN_MSG: /************************************************************SHUTDOWN_MSG: Shutting down DataNode at localhost/127.0.0.1************************************************************/
通过上面的信息,大致可以了解到,通过&Incompatible namespaceIDs in /tmp/hadoop-root/dfs/data&可知,是由于 /tmp/hadoop-root/dfs/data中的namespaceIDs不兼容导致的,也就是说,很可能是由于上次运行其它版本的Hadoop在/tmp/hadoop-root/dfs/data目录下有残留的不兼容的数据。事实上在我运行过程中出现这个问题就是由于,刚刚尝试了Hadoop-0.19.0版本的运行,运行后并没有清理这些数据。
(2)解决方法
清理对应目录的数据以后,就可以正常运行了,这时执行启动各个进程之后,通过jps命令可以查看到结果如下所示:
5386 JobTracker5253 DataNode5529 Jps4874 SecondaryNameNode5489 TaskTracker4649 NameNode
上面5个进程都启动起来了,可以上传文件到HDFS,并执行wordcount例子
本篇文章来源于 Linux公社网站()& 原文链接:
&&相关文章推荐
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:466444次
积分:5831
积分:5831
排名:第4660名
原创:168篇
评论:35条
(1)(2)(1)(2)(1)(1)(1)(1)(2)(3)(1)(3)(8)(17)(30)(91)(13)
(window.slotbydup = window.slotbydup || []).push({
id: '4740887',
container: s,
size: '250,250',
display: 'inlay-fix'}

我要回帖

更多关于 be instead by 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信