Skip to content

Commit 51db705

Browse files
author
gadamc
committed
Changes name to ibmos2sparklyr
Changes example usage to include spark object name.
1 parent 06e3b52 commit 51db705

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

r/sparklyr/DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Package: ibmos2spark
1+
Package: ibmos2sparklyr
22
Title: Loads Object Store data into Softlayer and Bluemix
33
Version: 0.0.7
44
Authors@R: person("Jim", "Crozier", email = "[email protected]",

r/sparklyr/README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ibmos2spark
1+
# ibmos2sparklyr
22

33
The package sets Spark Hadoop configurations for connecting to
44
IBM Bluemix Object Storage and Softlayer Account Object Storage instances
@@ -20,7 +20,7 @@ In Data Science Experience please be sure to include the "dependencies = FALSE"
2020

2121
### Bluemix
2222

23-
library(ibmos2spark)
23+
library(ibmos2sparklyr)
2424
configurationname = "bluemixOScon" #can be any any name you like (allows for multiple configurations)
2525

2626
# In DSX notebooks, the "insert to code" will insert this credentials list for you
@@ -32,16 +32,17 @@ In Data Science Experience please be sure to include the "dependencies = FALSE"
3232
password="XXXXX")
3333
3434
bmconfig = bluemix(sparkcontext=sc, name=configurationname, credentials = creds)
35-
36-
container = "my_container"
37-
object = "my_data.csv"
38-
35+
36+
container = "my_container" # name of your object store container
37+
object = "my_data.csv" # name of object that you want to retrieve in the container
38+
spark_object_name = "dataFromSwift" # name to assign to the new spark object
39+
3940
data = sparklyr::spark_read_csv(sc, spark_object_name,bmconfig$url(container,object))
4041

4142

4243
### Softlayer
4344

44-
library(ibmos2spark)
45+
library(ibmos2sparklyr)
4546
configurationname = "softlayerOScon" #can be any any name you like (allows for multiple configurations)
4647

4748
slconfig = softlayer(sparkcontext=sc,
@@ -52,8 +53,9 @@ In Data Science Experience please be sure to include the "dependencies = FALSE"
5253
password="XXXXX"
5354
)
5455
55-
container = "my_container"
56-
object = "my_data.csv"
56+
container = "my_container" # name of your object store container
57+
object = "my_data.csv" # name of object that you want to retrieve in the container
58+
spark_object_name = "dataFromSwift" # name to assign to the new spark object
5759

5860
data = sparklyr::spark_read_csv(sc, spark_object_name,slconfig$url(container,object))
5961

0 commit comments

Comments
 (0)