반응형
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 | 29 | 30 |
Tags
- dataframe
- numpy
- Github
- Redshift
- Mac
- Excel
- PySpark
- Python
- matplotlib
- google apps script
- PANDAS
- string
- django
- Apache
- array
- 파이썬
- Java
- math
- Tkinter
- list
- c#
- gas
- GIT
- Kotlin
- Google Excel
- PostgreSQL
- hive
- Google Spreadsheet
- SQL
Archives
- Today
- Total
목록spark hive (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