HadOOP部署和调试遇到的一些问题 V1.0.2
1.使用HDFS,用JAVA API存入文件时报错
Exception in thread "main" java.net.ConnectException: Call to IP:9000 failed on connection exception: java.net.ConnectException: Connection refused: no further information
HADOOP_OPTS=-Djava.net.preferIPv4Stack=true
Exception in thread "main" org.apache.hadoop.ipc.RemoteException: org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot create file/usr/local/test. Name node is in safe mode.