Skip to content

Commit 398682f

Browse files
committed
updates per peer review
1 parent aa540fb commit 398682f

File tree

3 files changed

+29
-23
lines changed

3 files changed

+29
-23
lines changed

articles/cosmos-db/create-cassandra-java.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ ms.custom: seo-java-august2019, seo-java-september2019
2020
> * [Python](create-cassandra-python.md)
2121
>
2222
23-
In this quickstart, you use a Cassandra Java app cloned from GitHub to connect to an Azure Cosmos DB account, and create a database and container. Azure Cosmos DB multi-model database service lets you quickly create and query document, table, key-value, and graph databases with global distribution and horizontal scale capabilities.
23+
In this quickstart, you create an Azure Cosmos DB Cassandra API account, and use a Cassandra Java app cloned from GitHub to create a Cassandra database and container. Azure Cosmos DB multi-model database service lets you quickly create and query document, table, key-value, and graph databases with global distribution and horizontal scale capabilities.
2424

2525
## Prerequisites
2626

27-
- An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio). Or, [try Azure Cosmos DB for free](https://azure.microsoft.com/try/cosmosdb/) without an Azure subscription.
27+
- An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio).
28+
29+
Or [try Azure Cosmos DB for free](https://azure.microsoft.com/try/cosmosdb/) without an Azure subscription.
2830
- [Java Development Kit (JDK) version 8](https://aka.ms/azure-jdks). Point your `JAVA_HOME` environment variable to the folder where the JDK is installed.
29-
- A [Maven](https://maven.apache.org/download.cgi) binary archive. On Linux, you can run `apt-get install maven` to install Maven.
31+
- A [Maven binary archive](https://maven.apache.org/download.cgi). On Linux, you can run `apt-get install maven` to install Maven.
3032
- [Git](https://www.git-scm.com/). On Linux, you can run `apt-get install git` to install Git.
3133

3234
## Create a database account
@@ -143,31 +145,31 @@ Now go back to the Azure portal to get your connection string information and co
143145

144146
2. Use the ![Copy button](./media/create-cassandra-java/copy-button-azure-portal.png) button on the right side of the screen to copy the CONTACT POINT value.
145147

146-
3. Open the `config.properties` file from `C:\git-samples\azure-cosmosdb-cassandra-java-getting-started\java-examples\src\main\resources` folder.
148+
3. Open the *config.properties* file from the *C:\git-samples\azure-cosmosdb-cassandra-java-getting-started\java-examples\src\main\resources* folder.
147149

148150
3. Paste the CONTACT POINT value from the portal over `<Cassandra endpoint host>` on line 2.
149151

150-
Line 2 of config.properties should now look similar to
152+
Line 2 of *config.properties* should now look similar to
151153

152154
`cassandra_host=cosmos-db-quickstart.cassandra.cosmosdb.azure.com`
153155

154-
3. Go back to portal and copy the USERNAME value. Past the USERNAME value from the portal over `<cassandra endpoint username>` on line 4.
156+
3. Go back to the portal and copy the USERNAME value. Past the USERNAME value from the portal over `<cassandra endpoint username>` on line 4.
155157

156-
Line 4 of config.properties should now look similar to
158+
Line 4 of *config.properties* should now look similar to
157159

158160
`cassandra_username=cosmos-db-quickstart`
159161

160-
4. Go back to portal and copy the PASSWORD value. Paste the PASSWORD value from the portal over `<cassandra endpoint password>` on line 5.
162+
4. Go back to the portal and copy the PASSWORD value. Paste the PASSWORD value from the portal over `<cassandra endpoint password>` on line 5.
161163

162-
Line 5 of config.properties should now look similar to
164+
Line 5 of *config.properties* should now look similar to
163165

164166
`cassandra_password=2Ggkr662ifxz2Mg...==`
165167

166168
5. On line 6, if you want to use a specific SSL certificate, then replace `<SSL key store file location>` with the location of the SSL certificate. If a value is not provided, the JDK certificate installed at <JAVA_HOME>/jre/lib/security/cacerts is used.
167169

168170
6. If you changed line 6 to use a specific SSL certificate, update line 7 to use the password for that certificate.
169171

170-
7. Save the `config.properties` file.
172+
7. Save the *config.properties* file.
171173

172174
## Run the Java app
173175

articles/cosmos-db/create-cassandra-nodejs.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ ms.date: 09/24/2018
1818
> * [Python](create-cassandra-python.md)
1919
>
2020
21-
In this quickstart, you use a Cassandra Node.js app cloned from GitHub to connect to an Azure Cosmos DB account, and create a database and container. Azure Cosmos DB multi-model database service lets you quickly create and query document, table, key-value, and graph databases with global distribution and horizontal scale capabilities.
21+
In this quickstart, you create an Azure Cosmos DB Cassandra API account, and use a Cassandra Node.js app cloned from GitHub to create a Cassandra database and container. Azure Cosmos DB multi-model database service lets you quickly create and query document, table, key-value, and graph databases with global distribution and horizontal scale capabilities.
2222

2323
## Prerequisites
2424

25-
- An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio). Or, [try Azure Cosmos DB for free](https://azure.microsoft.com/try/cosmosdb/) without an Azure subscription.
26-
- [Node.js](https://nodejs.org/en/) version v0.10.29 or higher.
25+
- An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio).
26+
27+
Or [try Azure Cosmos DB for free](https://azure.microsoft.com/try/cosmosdb/) without an Azure subscription.
28+
- [Node.js](https://nodejs.org/en/) version 0.10.29 or higher.
2729
- [Git](https://www.git-scm.com/).
2830

2931
## Create a database account

articles/cosmos-db/create-cassandra-python.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ ms.date: 09/24/2018
1818
> * [Python](create-cassandra-python.md)
1919
>
2020
21-
In this quickstart, you use a Cassandra Python app cloned from GitHub to connect to an Azure Cosmos DB account, and create a database and container. Azure Cosmos DB multi-model database service lets you quickly create and query document, table, key-value, and graph databases with global distribution and horizontal scale capabilities.
21+
In this quickstart, you create an Azure Cosmos DB Cassandra API account, and use a Cassandra Python app cloned from GitHub to create a Cassandra database and container. Azure Cosmos DB multi-model database service lets you quickly create and query document, table, key-value, and graph databases with global distribution and horizontal scale capabilities.
2222

2323
## Prerequisites
2424

25-
- An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio). Or, [try Azure Cosmos DB for free](https://azure.microsoft.com/try/cosmosdb/) without an Azure subscription.
26-
- [Python](https://www.python.org/downloads/) version v2.7.14 or above.
25+
- An Azure account with an active subscription. [Create one for free](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio).
26+
27+
Or [try Azure Cosmos DB for free](https://azure.microsoft.com/try/cosmosdb/) without an Azure subscription.
28+
- [Python](https://www.python.org/downloads/) version 2.7.14 or above.
2729
- [Git](https://git-scm.com/).
2830
- [Python Driver for Apache Cassandra](https://github.com/datastax/python-driver).
2931

@@ -57,7 +59,7 @@ Now let's clone a Cassandra API app from GitHub, set the connection string, and
5759

5860
## Review the code
5961

60-
This step is optional. If you're interested to learn how the code creates the database resources, you can review the following snippets. The snippets are all taken from the pyquickstart.py file. Otherwise, you can skip ahead to [Update your connection string](#update-your-connection-string).
62+
This step is optional. If you're interested to learn how the code creates the database resources, you can review the following snippets. The snippets are all taken from the *pyquickstart.py* file. Otherwise, you can skip ahead to [Update your connection string](#update-your-connection-string).
6163
6264
* The username and password values were set using the connection string page in the Azure portal. The `path\to\cert` provides a path to an X509 certificate.
6365
@@ -132,7 +134,7 @@ Now go back to the Azure portal to get your connection string information and co
132134
133135
![View and copy an access user name, password and contact point in the Azure portal, connection string blade](./media/create-cassandra-python/keys.png)
134136
135-
2. Open the `config.py` file.
137+
2. Open the *config.py* file.
136138
137139
3. Paste the CONTACT POINT value from the portal over `<FILLME>` on line 10.
138140
@@ -152,17 +154,17 @@ Now go back to the Azure portal to get your connection string information and co
152154
153155
`'password' = '2Ggkr662ifxz2Mg==`';`
154156
155-
6. Save the config.py file.
157+
6. Save the *config.py* file.
156158
157159
## Use the X509 certificate
158160
159-
1. Download the Baltimore CyberTrust Root certificate locally from [https://cacert.omniroot.com/bc2025.crt](https://cacert.omniroot.com/bc2025.crt). Rename the file using the file extension `.cer`.
161+
1. Download the Baltimore CyberTrust Root certificate locally from [https://cacert.omniroot.com/bc2025.crt](https://cacert.omniroot.com/bc2025.crt). Rename the file using the file extension *.cer*.
160162
161163
The certificate has serial number `02:00:00:b9` and SHA1 fingerprint `d4🇩🇪20:d0:5e:66:fc:53:fe:1a:50:88:2c:78:db:28:52:ca:e4:74`.
162164
163-
2. Open `pyquickstart.py` and change the `path\to\cert` to point to your new certificate.
165+
2. Open *pyquickstart.py* and change the `path\to\cert` to point to your new certificate.
164166
165-
3. Save `pyquickstart.py`.
167+
3. Save *pyquickstart.py*.
166168
167169
## Run the Python app
168170
@@ -177,7 +179,7 @@ Now go back to the Azure portal to get your connection string information and co
177179
python -m pip install pyopenssl
178180
```
179181
180-
2. Run the following command to start your node application:
182+
2. Run the following command to start your Python application:
181183
182184
```
183185
python pyquickstart.py

0 commit comments

Comments
 (0)