@@ -129,21 +129,21 @@ class bluemix(sc: SparkContext, name: String, creds: HashMap[String, String],
129
129
}
130
130
131
131
/**
132
- * This class allows you to connect to a cloud object storage (COS) instance. It also support
133
- connecting to a cos instance that is being hosted on bluemix.
132
+ * This class allows you to connect to an IBM cloud object storage (COS) instance. It also support
133
+ connecting to a COS instance that is being hosted on bluemix.
134
134
135
135
* Constructor arguments:
136
136
137
137
* sparkcontext: a SparkContext object.
138
138
139
- * credentials: a dictionary with the following required keys to connect to cos .
140
- The required keys differ according to the type of cos .
141
- * - for cos type "softlayer_cos" the following key are required:
142
- * endpoint [required]
139
+ * credentials: a dictionary with the following required keys to connect to COS .
140
+ The required keys differ according to the type of COS .
141
+ * - for COS type "softlayer_cos" the following key are required:
142
+ * endPoint [required]
143
143
* accessKey [required]
144
144
* secretKey [required]
145
- * - for cos type "bluemix_cos", here are the required/optional key:
146
- * endpoint [required]
145
+ * - for COS type "bluemix_cos", here are the required/optional key:
146
+ * endPoint [required]
147
147
* serviceId [required]
148
148
* apiKey OR iamToken depends on the selected authorization method (authMethod) [required]
149
149
* iamServiceEndpoint [optional] (default: https://iam.ng.bluemix.net/oidc/token)
@@ -154,10 +154,10 @@ class bluemix(sc: SparkContext, name: String, creds: HashMap[String, String],
154
154
multiple configurations to different Object Storage accounts.
155
155
if a configuration name is not passed the default one will be used "service".
156
156
157
- * cosType [optional]: string that identifies the type of cos to connect to. The supported types of cos
157
+ * cosType [optional]: string that identifies the type of COS to connect to. The supported types of COS
158
158
are "softlayer_cos" and "bluemix_cos". "softlayer_cos" will be chosen as default if no cosType is passed.
159
159
160
- * authMethod [optional]: string that identifies the type of authorization method to use when connecting to cos . This parameter
160
+ * authMethod [optional]: string that identifies the type of authorization method to use when connecting to COS . This parameter
161
161
is not reqired for softlayer_cos but only needed for bluemix_cos. Two options can be chosen for this params
162
162
"api_key" or "iam_token". "api_key" will be chosen as default if the value is not set.
163
163
*/
@@ -179,7 +179,7 @@ class CloudObjectStorage(sc: SparkContext, credentials: HashMap[String, String],
179
179
hadoopConf.set(prefix + " .access.key" , credentials(" accessKey" ))
180
180
hadoopConf.set(prefix + " .secret.key" , credentials(" secretKey" ))
181
181
} else if (cosType == " bluemix_cos" ) {
182
- // bluemix cos case
182
+ // bluemix COS case
183
183
hadoopConf.set(prefix + " .iam.service.id" , credentials(" serviceId" ))
184
184
if (authMethod == " api_key" ) {
185
185
hadoopConf.set(prefix + " .iam.api.key" , credentials(" apiKey" ))
0 commit comments