Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bassel-zeidan committed Oct 9, 2017
1 parent ed2da1b commit 8c970f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/README.md
Expand Up @@ -43,7 +43,7 @@ credentials = {
}

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

bucket_name = 'some_bucket_name'
object_name = 'file1'
Expand All @@ -64,7 +64,7 @@ credentials = {
}

configuration_name = 'os_bluemix_cos_config'
cos = ibmos2spark.CloudObjectStorage(sparkcontext=sc, credentials=credentials,
cos = ibmos2spark.CloudObjectStorage(sc, credentials,
configuration_name=configuration_name,
cos_type='bluemix_cos')

Expand All @@ -84,7 +84,7 @@ credentials = {
}

configuration_name = 'os_bluemix_cos_config'
cos = ibmos2spark.CloudObjectStorage(sparkcontext=sc, credentials=credentials,
cos = ibmos2spark.CloudObjectStorage(sc, credentials,
configuration_name=configuration_name,
cos_type='bluemix_cos',
auth_method='iam_token')
Expand Down

0 comments on commit 8c970f3

Please sign in to comment.