Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Unable to create snapshot directory

Highlighted

Unable to create snapshot directory

Explorer

 

Hello 

 

I am newbie , in process of taking snapshot .

so created directory in the linux filesystem under my username and when i try to execute the below command in terminal , all daemons s are up and running . 

 

Hadoop 2.3.0-cdh5.0.0

 

sudo -u hdfs hdfs dfsadmin -allowSnapshot /home/training/Desktop/backup

I get the below errors 

 

allowSnapshot: Directory does not exist: /home/training/Desktop/backup
	at org.apache.hadoop.hdfs.server.namenode.INodeDirectory.valueOf(INodeDirectory.java:55)
	at org.apache.hadoop.hdfs.server.namenode.snapshot.SnapshotManager.setSnapshottable(SnapshotManager.java:105)
	at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.allowSnapshot(FSNamesystem.java:6868)
	at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.allowSnapshot(NameNodeRpcServer.java:1229)
	at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB.allowSnapshot(ClientNamenodeProtocolServerSideTranslatorPB.java:1006)
	at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProtos.java)
	at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:585)
	at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:1026)
	at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1986)
	at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1982)
	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:1548)
	at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1980)

i did the check directory 

 

[training@elephant backup]$ pwd
/home/training/Desktop/backup

I have no clue as to how to solve the above issue . 

 

thanks

1 REPLY 1

Re: Unable to create snapshot directory

Explorer

My bad I created the directory in Linux file system 

should have created in hdfs . 

please ignore thanks. 

Don't have an account?
Coming from Hortonworks? Activate your account here