Skip to content

Commit 9ea0feb

Browse files
author
gadamc
committed
Change examples to import as oss instead of os2s.
This is easier to type.
1 parent 1b5d457 commit 9ea0feb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Use this when trying to access data on either a Softlayer or Bluemix ObjectStore
77

88
#### Using Swift Driver
99
```python
10-
import ibmos2spark as os2s
10+
import ibmos2spark as oss
1111

1212
#To obtain these credentials in IBM Spark, click the "insert to code"
1313
#button below your data source found on the panel to the right of your notebook.
@@ -23,15 +23,15 @@ credentials = {
2323

2424
credentials['name'] = 'my_bluemix_os' #you can give any name you like
2525

26-
bmos = os2s.bluemix(sc, credentials) #sc is the SparkContext instance
26+
bmos = oss.bluemix(sc, credentials) #sc is the SparkContext instance
2727

2828
data = sc.textFile(bmos.url(container_name, file_name))
2929
```
3030

3131
#### Using Stocator (Swift2d) Driver
3232

3333
```python
34-
import ibmos2spark as os2s
34+
import ibmos2spark as oss
3535

3636
#To obtain these credentials in IBM Spark, click the "insert to code"
3737
#button below your data source found on the panel to the right of your notebook.
@@ -47,7 +47,7 @@ credentials = {
4747

4848
credentials['name'] = 'my_bluemix_os' #you can give any name you like
4949

50-
bmos = os2s.bluemix2d(sc, credentials) #sc is the SparkContext instance
50+
bmos = oss.bluemix2d(sc, credentials) #sc is the SparkContext instance
5151

5252
data = sc.textFile(bmos.url(container_name, file_name))
5353
```
@@ -58,29 +58,29 @@ data = sc.textFile(bmos.url(container_name, file_name))
5858
#### Using Swift Driver
5959

6060
```python
61-
import ibmos2spark as os2s
61+
import ibmos2spark as oss
6262

6363
#you need to know the credentials to your Softlayer ObjectStore.
6464

6565
#sc is the SparkContext instance
6666
#you can give any name you like
6767

68-
slos = os2s.softlayer(sc, "my_softlayer_os", auth_url, username, password)
68+
slos = oss.softlayer(sc, "my_softlayer_os", auth_url, username, password)
6969

7070
data = sc.textFile(slos.url(container_name, file_name))
7171
```
7272

7373
#### Using Stocator (Swift2d) Driver
7474

7575
```python
76-
import ibmos2spark as os2s
76+
import ibmos2spark as oss
7777

7878
#you need to know the credentials to your Softlayer ObjectStore.
7979

8080
#sc is the SparkContext instance
8181
#you can give any name you like
8282

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)
8484

8585
data = sc.textFile(slos.url(container_name, file_name))
8686
```

0 commit comments

Comments
 (0)