[ https://issues.apache.org/jira/browse/HBASE-9160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13735441#comment-13735441 ]
Jing Zhao commented on HBASE-9160: ---------------------------------- in 2.1 hdfs with the snapshot change, ".snapshot" is a reserved name. Thus if the old cluster contains files/directories with the name ".snapshot", you need to rename these files/directories before the upgrade to 2.1. > TestNamespaceUpgrade fails on hadoop 2.1 due to existence of .snapshot > directory in tar ball > -------------------------------------------------------------------------------------------- > > Key: HBASE-9160 > URL: https://issues.apache.org/jira/browse/HBASE-9160 > Project: HBase > Issue Type: Test > Reporter: Ted Yu > Assignee: Ted Yu > Attachments: TestNamespaceUpgrade.tgz > > > Here is partial listing of contents for TestNamespaceUpgrade.tgz : > {code} > -rwxrwxrwx 0 fcliu staff 0 May 13 10:50 > hbase/.snapshot/ns.two.foo_snapshot2/7112077ccfba8a46c0694ca8c0a4bc2d/f/136799c89e244b9bad79281b37650927 > -rwxrwxrwx 0 fcliu staff 0 May 13 10:50 > hbase/.snapshot/ns.two.foo_snapshot2/7112077ccfba8a46c0694ca8c0a4bc2d/f/98093488150c42229927fd2a1e8c5d69 > -rw-r--r-- 0 fcliu staff 12 May 13 10:50 > hbase/.snapshot/ns.two.foo_snapshot1/..snapshotinfo.crc > {code} > Running the test on hadoop 2.1, I saw the following in test output: > {code} > 2013-08-08 19:59:29,834 WARN [IPC Server handler 3 on 47143] > ipc.Server$Handler(2044): IPC Server handler 3 on 47143, call > org.apache.hadoop.hdfs.protocol.ClientProtocol.mkdirs from 127.0.0.1:46287 > Call#264 Retry#0: error: org.apache.hadoop.HadoopIllegalArgumentException: > ".snapshot" is a reserved name. > org.apache.hadoop.HadoopIllegalArgumentException: ".snapshot" is a reserved > name. > at > org.apache.hadoop.hdfs.server.namenode.FSDirectory.verifyINodeName(FSDirectory.java:2108) > at > org.apache.hadoop.hdfs.server.namenode.FSDirectory.addChild(FSDirectory.java:2204) > at > org.apache.hadoop.hdfs.server.namenode.FSDirectory.unprotectedMkdir(FSDirectory.java:2003) > at > org.apache.hadoop.hdfs.server.namenode.FSDirectory.mkdirs(FSDirectory.java:1956) > at > org.apache.hadoop.hdfs.server.namenode.FSNamesystem.mkdirsInternal(FSNamesystem.java:3379) > at > org.apache.hadoop.hdfs.server.namenode.FSNamesystem.mkdirsInt(FSNamesystem.java:3338) > at > org.apache.hadoop.hdfs.server.namenode.FSNamesystem.mkdirs(FSNamesystem.java:3310) > at > org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.mkdirs(NameNodeRpcServer.java:694) > at > org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.mkdirs(ClientNamenodeProtocolServerSideTranslatorPB.java:502) > at > org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java:48089) > at > org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:585) > at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:928) > at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2028) > at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2024) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:415) > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1477) > at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2022) > put: ".snapshot" is a reserved name. > {code} > Looks like the tar ball was generated using an old version of 0.94 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira