Skip to content

Commit 8c970f3

Browse files
Update README.md
1 parent ed2da1b commit 8c970f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ credentials = {
4343
}
4444

4545
configuration_name = 'cos_config_string' #you can give any string you like
46-
cos = ibmos2spark.CloudObjectStorage(sparkcontext=sc, credentials=credentials, configuration_name=configuration_name) #sc is the SparkContext instance.
46+
cos = ibmos2spark.CloudObjectStorage(sc, credentials, configuration_name=configuration_name) #sc is the SparkContext instance.
4747

4848
bucket_name = 'some_bucket_name'
4949
object_name = 'file1'
@@ -64,7 +64,7 @@ credentials = {
6464
}
6565

6666
configuration_name = 'os_bluemix_cos_config'
67-
cos = ibmos2spark.CloudObjectStorage(sparkcontext=sc, credentials=credentials,
67+
cos = ibmos2spark.CloudObjectStorage(sc, credentials,
6868
configuration_name=configuration_name,
6969
cos_type='bluemix_cos')
7070

@@ -84,7 +84,7 @@ credentials = {
8484
}
8585

8686
configuration_name = 'os_bluemix_cos_config'
87-
cos = ibmos2spark.CloudObjectStorage(sparkcontext=sc, credentials=credentials,
87+
cos = ibmos2spark.CloudObjectStorage(sc, credentials,
8888
configuration_name=configuration_name,
8989
cos_type='bluemix_cos',
9090
auth_method='iam_token')

0 commit comments

Comments
 (0)