Skip to content

Commit 5a2f219

Browse files
committed
Add Comment
1 parent 96128a8 commit 5a2f219

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

python/ibmos2spark/osconfig.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,26 @@ def url(self, container_name, object_name):
175175
class CloudObjectStorage(object):
176176

177177
def __init__(self, sparkcontext, bucket_name, credentials, public=False, driver='com.ibm.stocator.fs.ObjectStoreFileSystem'):
178+
179+
'''
180+
sparkcontext: a SparkContext object.
181+
182+
bucket_name (projectId in DSX): string that identifies the bucket you want
183+
to access files from in the COS service instance.
184+
In DSX, bucket_name is the same as projectId. One bucket is
185+
associated with one project.
186+
187+
credentials: a dictionary with the following required keys:
188+
* endpoint
189+
* access_key
190+
* secret_key
191+
192+
When using this on DSX credentials and bucket_name can be obtained
193+
in DSX - Notebooks by clicking on the datasources palette then
194+
choose the datasource you want to access then hit insert credentials.
195+
196+
'''
197+
178198
self.bucket_name = bucket_name
179199

180200
# check if all required values are availble

0 commit comments

Comments
 (0)