@@ -7,7 +7,7 @@ Use this when trying to access data on either a Softlayer or Bluemix ObjectStore
7
7
8
8
#### Using Swift Driver
9
9
``` python
10
- import ibmos2spark as os2s
10
+ import ibmos2spark as oss
11
11
12
12
# To obtain these credentials in IBM Spark, click the "insert to code"
13
13
# button below your data source found on the panel to the right of your notebook.
@@ -23,15 +23,15 @@ credentials = {
23
23
24
24
credentials[' name' ] = ' my_bluemix_os' # you can give any name you like
25
25
26
- bmos = os2s .bluemix(sc, credentials) # sc is the SparkContext instance
26
+ bmos = oss .bluemix(sc, credentials) # sc is the SparkContext instance
27
27
28
28
data = sc.textFile(bmos.url(container_name, file_name))
29
29
```
30
30
31
31
#### Using Stocator (Swift2d) Driver
32
32
33
33
``` python
34
- import ibmos2spark as os2s
34
+ import ibmos2spark as oss
35
35
36
36
# To obtain these credentials in IBM Spark, click the "insert to code"
37
37
# button below your data source found on the panel to the right of your notebook.
@@ -47,7 +47,7 @@ credentials = {
47
47
48
48
credentials[' name' ] = ' my_bluemix_os' # you can give any name you like
49
49
50
- bmos = os2s .bluemix2d(sc, credentials) # sc is the SparkContext instance
50
+ bmos = oss .bluemix2d(sc, credentials) # sc is the SparkContext instance
51
51
52
52
data = sc.textFile(bmos.url(container_name, file_name))
53
53
```
@@ -58,29 +58,29 @@ data = sc.textFile(bmos.url(container_name, file_name))
58
58
#### Using Swift Driver
59
59
60
60
``` python
61
- import ibmos2spark as os2s
61
+ import ibmos2spark as oss
62
62
63
63
# you need to know the credentials to your Softlayer ObjectStore.
64
64
65
65
# sc is the SparkContext instance
66
66
# you can give any name you like
67
67
68
- slos = os2s .softlayer(sc, " my_softlayer_os" , auth_url, username, password)
68
+ slos = oss .softlayer(sc, " my_softlayer_os" , auth_url, username, password)
69
69
70
70
data = sc.textFile(slos.url(container_name, file_name))
71
71
```
72
72
73
73
#### Using Stocator (Swift2d) Driver
74
74
75
75
``` python
76
- import ibmos2spark as os2s
76
+ import ibmos2spark as oss
77
77
78
78
# you need to know the credentials to your Softlayer ObjectStore.
79
79
80
80
# sc is the SparkContext instance
81
81
# you can give any name you like
82
82
83
- slos = os2s .softlayer2d(sc, " my_softlayer_os" , auth_url, tenant, username, password)
83
+ slos = oss .softlayer2d(sc, " my_softlayer_os" , auth_url, tenant, username, password)
84
84
85
85
data = sc.textFile(slos.url(container_name, file_name))
86
86
```
0 commit comments