BIGTOP-3908 Upgrade Spark Packages for PySpark Requres Python3#1087
Open
vivostar wants to merge 1 commit intoapache:masterfrom
Open
BIGTOP-3908 Upgrade Spark Packages for PySpark Requres Python3#1087vivostar wants to merge 1 commit intoapache:masterfrom
vivostar wants to merge 1 commit intoapache:masterfrom
Conversation
pan3793
reviewed
Mar 4, 2023
| %else | ||
| Requires: %{spark_pkg_name}-core = %{version}-%{release}, python | ||
| %endif | ||
| Requires: %{spark_pkg_name}-core = %{version}-%{release}, python36 |
Member
There was a problem hiding this comment.
Currently, bigtop uses Spark 3.2, but since Spark 3.3, the minimal python version is 3.7, so can we use a higher version to make it more future-proofing?
https://spark.apache.org/docs/3.3.2/api/python/getting_started/install.html
Contributor
Author
There was a problem hiding this comment.
thanks for your suggestions, I think we can use a higher python3 version.
Contributor
|
PySpark stucked in CentOS7. BTW, could you also upgrade python for Spark deb packages? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
Upgade spark rpm packages for pyspark requires python3, according to the spark doc.
How was this patch tested?
./docker-hadoop.sh \ -d \ -dcp\ --create 1 \ --image bigtop/puppet:trunk-rockylinux-8 \ --memory 8g \ -L \ --repo file:///bigtop-home/output \ --disable-gpg-check \ --stack hdfs,yarn,mapreduce,spark,hive [root@dockert docker]# ./docker-hadoop.sh -dcp -e 1 /bin/bash [root@02f673194720 /]# pyspark ... >>> from datetime import datetime, date >>> from pyspark.sql import Row >>> >>> df = spark.createDataFrame([ ... Row(a=1, b=2., c='string1', d=date(2000, 1, 1), e=datetime(2000, 1, 1, 12, 0)), ... Row(a=2, b=3., c='string2', d=date(2000, 2, 1), e=datetime(2000, 1, 2, 12, 0)), ... Row(a=4, b=5., c='string3', d=date(2000, 3, 1), e=datetime(2000, 1, 3, 12, 0)) ... ]) >>> df DataFrame[a: bigint, b: double, c: string, d: date, e: timestamp] >>> df.show() +---+---+-------+----------+-------------------+ | a| b| c| d| e| +---+---+-------+----------+-------------------+ | 1|2.0|string1|2000-01-01|2000-01-01 12:00:00| | 2|3.0|string2|2000-02-01|2000-01-02 12:00:00| | 4|5.0|string3|2000-03-01|2000-01-03 12:00:00| +---+---+-------+----------+-------------------+ >>>