에러 내용
Caused by: org.apache.spark.SparkUpgradeException:
[INCONSISTENT_BEHAVIOR_CROSS_VERSION.PARSE_DATETIME_BY_NEW_PARSER]
You may get a different result due to the upgrading to Spark >= 3.0:
Fail to parse '2024-05-26 12:11:38.478' in the new parser.
You can set "spark.sql.legacy.timeParserPolicy" to "LEGACY" to restore
the behavior before Spark 3.0, or set to "CORRECTED"
and treat it as an invalid datetime string.
해결 방법
spark.conf.set("spark.sql.legacy.timeParserPolicy", "LEGACY")
'Data Engineering > Spark' 카테고리의 다른 글
[Spark] Executor 개념 (0) | 2025.01.17 |
---|---|
[Spark] Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/spark/sql/SparkSession (2) | 2024.12.14 |
[Spark] Partition, Parquet 파일 크기 (0) | 2024.05.08 |
[Spark] Spill, 직렬화 메커니즘 (0) | 2024.05.08 |
[Spark] Spark Executor 란 무엇일까 (2) | 2023.12.30 |