Name node is in safe mode.
Close SafeMode
Hadoop Dfsadmin-safemode Leave
Exception in thread "main" org.apache.hadoop.ipc.RemoteException: Org.apache.hadoop.hdfs.server.namenode.SafeModeException:Cannot Create File/wangxin_test/build.xml. Name node is in safe mode.
The ratio of reported blocks 1.0000 has reached the threshold 0.9990. Safe mode is turned off automatically seconds.
At Org.apache.hadoop.hdfs.server.namenode.FSNamesystem.startFileInternal (fsnamesystem.java:1220)
At Org.apache.hadoop.hdfs.server.namenode.FSNamesystem.startFile (fsnamesystem.java:1188)
At Org.apache.hadoop.hdfs.server.namenode.NameNode.create (namenode.java:628)
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:563)
At Org.apache.hadoop.ipc.server$handler$1.run (server.java:1388)
At Org.apache.hadoop.ipc.server$handler$1.run (server.java:1384)
At Java.security.AccessController.doPrivileged (Native method)
At Javax.security.auth.Subject.doAs (subject.java:396)
At Org.apache.hadoop.security.UserGroupInformation.doAs (usergroupinformation.java:1121)
At Org.apache.hadoop.ipc.server$handler.run (server.java:1382)
At Org.apache.hadoop.ipc.Client.call (client.java:1070)
At Org.apache.hadoop.ipc.rpc$invoker.invoke (rpc.java:225)
At $Proxy 1.create (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 $Proxy 1.create (Unknown Source)
At Org.apache.hadoop.hdfs.dfsclient$dfsoutputstream.<init> (dfsclient.java:3248)
At Org.apache.hadoop.hdfs.DFSClient.create (dfsclient.java:713)
At Org.apache.hadoop.hdfs.DistributedFileSystem.create (distributedfilesystem.java:182)
At Org.apache.hadoop.fs.FileSystem.create (filesystem.java:555)
At Org.apache.hadoop.fs.FileSystem.create (filesystem.java:536)
At Org.apache.hadoop.fs.FileSystem.create (filesystem.java:443)
At Org.apache.hadoop.fs.FileUtil.copy (fileutil.java:229)
At Org.apache.hadoop.fs.FileSystem.copyFromLocalFile (filesystem.java:1195)
At Org.apache.hadoop.fs.FileSystem.copyFromLocalFile (filesystem.java:1171)
At Org.apache.hadoop.fs.FileSystem.copyFromLocalFile (filesystem.java:1143)
at COM. Hadoop.HdfsUtil.uploadLocalFile2HDFS (hdfsutil.java:53)
at COM. Hadoop.HdfsUtil.main (HDFSUTIL.JAVA:18)
Close SafeMode
Hadoop Dfsadmin-safemode Leave