Skip to content

Commit 81fe6c5

Browse files
committed
update windwos cqlsh installation
1 parent ee12be4 commit 81fe6c5

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

articles/cosmos-db/cassandra/cassandra-support.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,30 @@ You can connect to the Cassandra API in Azure Cosmos DB by using the CQLSH insta
247247
248248
**Windows:**
249249

250-
If using windows, we recommend you enable the [Windows filesystem for Linux](/windows/wsl/install-win10#install-the-windows-subsystem-for-linux). You can then follow the linux commands below.
250+
<!-- If using windows, we recommend you enable the [Windows filesystem for Linux](/windows/wsl/install-win10#install-the-windows-subsystem-for-linux). You can then follow the linux commands below. -->
251+
252+
1. Install [Python 2.7](https://www.python.org/downloads/release/python-2718/)
253+
1. Select the Windows x86-64 MSI installer version
254+
1. Install PIP
255+
1. Before install PIP, download the get-pip.py file.
256+
1. Launch a command prompt if it isn't already open. To do so, open the Windows search bar, type cmd and select the icon.
257+
1. Then, run the following command to download the get-pip.py file:
258+
```bash
259+
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
260+
```
261+
1. Install PIP on Windows
262+
```bash
263+
python get-pip.py
264+
```
265+
1. Verify the PIP installation (look for a message from step 3 to confirm which folder PIP was installed in and then navigate to that folder and run the command pip help).
266+
1. Install CQLSH using PIP
267+
```bash
268+
pip3 install cqlsh==5.0.3
269+
```
270+
1. Run the [CQLSH using the authentication mechanism](manage-data-cqlsh.md#update-your-connection-string).
271+
272+
> [!NOTE]
273+
> You would need to set the environment variables to point to the Python27 folder.
251274

252275
**Install on Unix/Linux/Mac:**
253276

@@ -282,29 +305,6 @@ cqlsh <YOUR_ACCOUNT_NAME>.cassandra.cosmosdb.azure.com 10350 -u <YOUR_ACCOUNT_NA
282305
docker run -it --rm -e SSL_VALIDATE=false -e SSL_VERSION=TLSv1_2 cassandra:3.11 cqlsh <account_name>.cassandra.cosmos.azure.com 10350 -u <YOUR_ACCOUNT_NAME> -p <YOUR_ACCOUNT_PASSWORD> --ssl
283306
```
284307

285-
**Manual installation in Windows:**
286-
1. Install [Python 3.7](https://www.python.org/downloads/release/python-370/)
287-
1. Install PIP
288-
1. Before install PIP, download the get-pip.py file.
289-
1. Launch a command prompt if it isn't already open. To do so, open the Windows search bar, type cmd and select the icon.
290-
1. Then, run the following command to download the get-pip.py file:
291-
```bash
292-
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
293-
```
294-
1. Install PIP on Windows
295-
```bash
296-
python get-pip.py
297-
```
298-
4. Verify the PIP installation (look for a message from step 3 to confirm which folder PIP was installed in and then navigate to that folder and run the command pip help).
299-
1. Install CQLSH using PIP
300-
```bash
301-
pip3 install cqlsh==5.0.3
302-
```
303-
6. Run the [CQLSH using the authentication mechanism](manage-data-cqlsh.md#update-your-connection-string).
304-
305-
> [!NOTE]
306-
> If you get an error while running cqlsh about a syntax error in cqlsh, this would require downgrading Python to v2.7, which is a simple installation from [here](https://www.python.org/downloads/release/python-270/) followed by changing the environment variables on your machine to point to the Python27 folder instead.
307-
308308
All CRUD operations that are executed through a CQL v4 compatible SDK will return extra information about error and request units consumed. The DELETE and UPDATE commands should be handled with resource governance taken into consideration, to ensure the most efficient use of the provisioned throughput.
309309

310310
* Note gc_grace_seconds value must be zero if specified.

0 commit comments

Comments
 (0)