본문 바로가기

Programming/Tip&Informaion

[Spark/hdfs] 데이터노드 디스크 확보

에러 발생

An error occurred while calling None.org.apache.spark.api.java.JavaSparkContext.
: org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /user/.sparkStaging/application_1681262849232_2058/hive-site.xml could only be written to 0 of the 1 minReplication nodes. There are 1 datanode(s) running and 1 node(s) are excluded in this operation.

hdfs 용량 확인

hdfs dfs -df -h

hdfs 로그 삭제

hdfs dfs -rm -skipTrash /var/log/spark/apps/*