티스토리 뷰
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
- Linux
- Kibana
- logstash
- JSON
- Java
- elasticsearch
- Index
- Size
- SpringBoot
- maven
- Container
- Spark
- spring
- apm
- Postman
- docker
- Log
- spring boot
- AWS
- gradle
- Filter
- intellij
- Git
- JPA
- tomcat
- scala
- install
- plugin
- error
- mac
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 31 |
글 보관함
