You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
24
24
25
25
## Prerequisites
26
26
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.
28
30
-[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.
30
32
-[Git](https://www.git-scm.com/). On Linux, you can run `apt-get install git` to install Git.
31
33
32
34
## Create a database account
@@ -143,31 +145,31 @@ Now go back to the Azure portal to get your connection string information and co
143
145
144
146
2. Use the  button on the right side of the screen to copy the CONTACT POINT value.
145
147
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.
147
149
148
150
3. Paste the CONTACT POINT value from the portal over `<Cassandra endpoint host>` on line 2.
149
151
150
-
Line 2 of config.properties should now look similar to
152
+
Line 2 of *config.properties* should now look similar to
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.
155
157
156
-
Line 4 of config.properties should now look similar to
158
+
Line 4 of *config.properties* should now look similar to
157
159
158
160
`cassandra_username=cosmos-db-quickstart`
159
161
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.
161
163
162
-
Line 5 of config.properties should now look similar to
164
+
Line 5 of *config.properties* should now look similar to
163
165
164
166
`cassandra_password=2Ggkr662ifxz2Mg...==`
165
167
166
168
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.
167
169
168
170
6. If you changed line 6 to use a specific SSL certificate, update line 7 to use the password for that certificate.
Copy file name to clipboardExpand all lines: articles/cosmos-db/create-cassandra-nodejs.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,12 +18,14 @@ ms.date: 09/24/2018
18
18
> *[Python](create-cassandra-python.md)
19
19
>
20
20
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.
22
22
23
23
## Prerequisites
24
24
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.
Copy file name to clipboardExpand all lines: articles/cosmos-db/create-cassandra-python.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,12 +18,14 @@ ms.date: 09/24/2018
18
18
> *[Python](create-cassandra-python.md)
19
19
>
20
20
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.
22
22
23
23
## Prerequisites
24
24
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.
27
29
-[Git](https://git-scm.com/).
28
30
-[Python Driver for Apache Cassandra](https://github.com/datastax/python-driver).
29
31
@@ -57,7 +59,7 @@ Now let's clone a Cassandra API app from GitHub, set the connection string, and
57
59
58
60
## Review the code
59
61
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).
61
63
62
64
* 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.
63
65
@@ -132,7 +134,7 @@ Now go back to the Azure portal to get your connection string information and co
132
134
133
135

134
136
135
-
2. Open the `config.py` file.
137
+
2. Open the *config.py* file.
136
138
137
139
3. Paste the CONTACT POINT value from the portal over `<FILLME>` on line 10.
138
140
@@ -152,17 +154,17 @@ Now go back to the Azure portal to get your connection string information and co
152
154
153
155
`'password' = '2Ggkr662ifxz2Mg==`';`
154
156
155
-
6. Save the config.py file.
157
+
6. Save the *config.py* file.
156
158
157
159
## Use the X509 certificate
158
160
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*.
160
162
161
163
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`.
162
164
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.
164
166
165
-
3. Save `pyquickstart.py`.
167
+
3. Save *pyquickstart.py*.
166
168
167
169
## Run the Python app
168
170
@@ -177,7 +179,7 @@ Now go back to the Azure portal to get your connection string information and co
177
179
python -m pip install pyopenssl
178
180
```
179
181
180
-
2. Run the following command to start your node application:
182
+
2. Run the following command to start your Python application:
0 commit comments