Skip to content

Commit 6a1d457

Browse files
committed
add Python named args
1 parent 1daf367 commit 6a1d457

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

python/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ credentials = {
6464
}
6565

6666
configuration_name = 'os_bluemix_cos_config'
67-
cos = ibmos2spark.CloudObjectStorage(sc, credentials, configuration_name, 'bluemix_cos')
67+
cos = ibmos2spark.CloudObjectStorage(sparkcontext=sc, credentials=credentials,
68+
configuration_name=configuration_name,
69+
cos_type='bluemix_cos')
6870

6971
bucket_name = 'bucket_name'
7072
object_name = 'file_name'
@@ -82,7 +84,10 @@ credentials = {
8284
}
8385

8486
configuration_name = 'os_bluemix_cos_config'
85-
cos = ibmos2spark.CloudObjectStorage(sc, credentials, configuration_name, 'bluemix_cos', 'iam_token')
87+
cos = ibmos2spark.CloudObjectStorage(sparkcontext=sc, credentials=credentials,
88+
configuration_name=configuration_name,
89+
cos_type='bluemix_cos',
90+
auth_method='iam_token')
8691

8792
bucket_name = 'bucket_name'
8893
object_name = 'file_name'

0 commit comments

Comments
 (0)