티스토리 뷰
import org.apache.hadoop.fs.{FileSystem, Path}
val fs = FileSystem.get(sc.hadoopConfiguration)
val outPutPath = new Path("/path/to/folder")
if (fs.exists(outPutPath))
fs.delete(outPutPath, true)FileSystem 을 사용하여 파일 또는 폴더를 삭제 할 수 있다.
'Spark & Scala' 카테고리의 다른 글
| [ spark & scala ] spark.sql.DataFrame 길이 구하는 방법 (0) | 2020.04.06 |
|---|---|
| GCP Exception - Invalid signature file (0) | 2020.02.17 |
| GCP noSuchMethodError 해결 (0) | 2020.02.14 |
| scala maven build (0) | 2020.02.14 |
| Spark 개발 프로젝트( IntelliJ, Scala, Maven ) (0) | 2020.02.12 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- AWS
- Kibana
- plugin
- JPA
- apm
- mac
- elasticsearch
- Size
- Postman
- docker
- Index
- Linux
- Filter
- Container
- maven
- Git
- intellij
- JSON
- tomcat
- spring
- error
- Spark
- spring boot
- logstash
- scala
- gradle
- install
- Log
- SpringBoot
- Java
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
글 보관함
