Skip to content

Commit

Permalink
add scala named args
Browse files Browse the repository at this point in the history
  • Loading branch information
bassel-zeidan committed Oct 9, 2017
1 parent 49af699 commit ed2da1b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions scala/README.md
Expand Up @@ -146,7 +146,7 @@ var bucketName = "myBucket"
var objectname = "mydata.csv"

var configurationName = "cos_config_name" // you can choose any string you want
var cos = new CloudObjectStorage(sc, credentials, configurationName)
var cos = new CloudObjectStorage(sc=sc, credentials=credentials, configurationName=configurationName)
var spark = SparkSession.
builder().
getOrCreate()
Expand All @@ -173,7 +173,9 @@ var bucketName = "myBucket"
var objectname = "mydata.csv"

var configurationName = "cos_config_name" // you can choose any string you want
var cos = new CloudObjectStorage(sc, credentials, configurationName, "bluemix_cos")
var cos = new CloudObjectStorage(sc=sc, credentials=credentials,
configurationName=configurationName,
cosType="bluemix_cos")
var spark = SparkSession.
builder().
getOrCreate()
Expand All @@ -200,7 +202,10 @@ var bucketName = "myBucket"
var objectname = "mydata.csv"

var configurationName = "cos_config_name" // you can choose any string you want
var cos = new CloudObjectStorage(sc, credentials, configurationName, "bluemix_cos", "iam_token")
var cos = new CloudObjectStorage(sc=sc, credentials=credentials,
configurationName=configurationName,
cosType="bluemix_cos",
authMethod="iam_token")
var spark = SparkSession.
builder().
getOrCreate()
Expand Down

0 comments on commit ed2da1b

Please sign in to comment.