File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 5
5
import os
6
6
import pytest
7
7
8
- os .environ ['JAVA_HOME' ] = '/usr/lib/jvm/java-17-openjdk-amd64'
8
+ # os.environ['JAVA_HOME'] = '/usr/lib/jvm/java-17-openjdk-amd64'
9
9
10
10
session = boto3 .Session ()
11
11
credentials = session .get_credentials ().get_frozen_credentials ()
12
12
13
13
s3_endpoint_url = 'https://br-se1.magaluobjects.com'
14
14
15
+ s3 = boto3 .client ('s3' )
15
16
def get_spark_session (path_style_access = True ):
16
17
try :
17
18
builder = SparkSession .builder .appName ("Demo" ) \
Original file line number Diff line number Diff line change
1
+ # make sure there is an AWS_PROFILE env var set and a configured aws profile with the name
2
+ from pyspark .sql import SparkSession
3
+
4
+ def test_pyspark_session ():
5
+ spark = SparkSession .builder .appName ("foo" ).getOrCreate ()
6
+ assert True
7
+
8
+ if __name__ == "__main__" :
9
+ pytest .main ([__file__ ])
10
+
You can’t perform that action at this time.
0 commit comments