반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- gas
- PANDAS
- c#
- GIT
- matplotlib
- Redshift
- Excel
- Kotlin
- 파이썬
- dataframe
- Mac
- Google Spreadsheet
- list
- hive
- string
- numpy
- SQL
- math
- array
- Apache
- Tkinter
- Github
- django
- google apps script
- Python
- PySpark
- Java
- Google Excel
- PostgreSQL
Archives
- Today
- Total
목록pyspark sql (1)
달나라 노트
Python pyspark : sql (spark에서 hive 쿼리 돌리기)
hive에서 직접 쿼리를 돌릴때보단 spark에서 돌리는게 좀 더 빠릅니다. 물론 결과 데이터가 크면 용량 초과 에러가 뜰 순 있지만요. from pyspark.sql import SparkSession spark = SparkSession.builder\ .appName('Test_runner')\ .config('hive.mapred.mode', 'nonstrict')\ .config('hive.exec.dynamic.partition', 'true')\ .config('hive.exec.dynamic.partition.mode', 'nonstrict')\ .config('hive.exec.parallel', 'true')\ .config('hive.stats.fetch.column.stats', '..
Python/Python pyspark
2021. 5. 19. 06:02