Skip to content

Commit 87d35c9

Browse files
author
Sreekanth Iyer (Ushta Te Consultancy Services)
committed
Improved Corectness Score
1 parent 78e1615 commit 87d35c9

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

articles/hdinsight/hdinsight-for-vscode.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The following items are required for completing the steps in this article:
2121
- [Visual Studio Code](https://code.visualstudio.com/).
2222
- [Mono](https://www.mono-project.com/docs/getting-started/install/). Mono is required only for Linux and macOS.
2323
- [A PySpark interactive environment for Visual Studio Code](set-up-pyspark-interactive-environment.md).
24-
- A local directory. This article uses **C:\HD\HDexample**.
24+
- A local directory. This article uses `C:\HD\HDexample`.
2525

2626
## Install Spark & Hive Tools
2727

@@ -43,9 +43,9 @@ After you meet the prerequisites, you can install Spark & Hive Tools for Visual
4343

4444
To open a work folder and to create a file in Visual Studio Code, follow these steps:
4545

46-
1. From the menu bar, navigate to **File** > **Open Folder...** > **C:\HD\HDexample**, and then select the **Select Folder** button. The folder appears in the **Explorer** view on the left.
46+
1. From the menu bar, navigate to **File** > **Open Folder...** > `C:\HD\HDexample`, and then select the **Select Folder** button. The folder appears in the **Explorer** view on the left.
4747

48-
2. In **Explorer** view, select the **HDexample** folder, and then select the **New File** icon next to the work folder:
48+
2. In **Explorer** view, select the **`HDexample`** folder, and then select the **New File** icon next to the work folder:
4949

5050
:::image type="content" source="./media/hdinsight-for-vscode/visual-studio-code-new-file.png" alt-text="visual studio code new file icon.":::
5151

@@ -126,7 +126,7 @@ You can link a normal cluster by using an [Apache Ambari](https://ambari.apache.
126126

127127
## Set the default cluster
128128

129-
1. Reopen the **HDexample** folder that was discussed [earlier](#open-a-work-folder), if closed.
129+
1. Reopen the **`HDexample`** folder that was discussed [earlier](#open-a-work-folder), if closed.
130130

131131
2. Select the **HelloWorld.hql** file that was created [earlier](#open-a-work-folder). It opens in the script editor.
132132

@@ -142,7 +142,7 @@ You can link a normal cluster by using an [Apache Ambari](https://ambari.apache.
142142

143143
With Spark & Hive Tools for Visual Studio Code, you can submit interactive Hive queries and Hive batch scripts to your clusters.
144144

145-
1. Reopen the **HDexample** folder that was discussed [earlier](#open-a-work-folder), if closed.
145+
1. Reopen the **`HDexample`** folder that was discussed [earlier](#open-a-work-folder), if closed.
146146

147147
2. Select the **HelloWorld.hql** file that was created [earlier](#open-a-work-folder). It opens in the script editor.
148148

@@ -175,7 +175,7 @@ Users can perform PySpark interactive in the following ways.
175175
### Using the PySpark interactive command in PY file
176176
Using the PySpark interactive command to submit the queries, follow these steps:
177177

178-
1. Reopen the **HDexample** folder that was discussed [earlier](#open-a-work-folder), if closed.
178+
1. Reopen the **`HDexample`** folder that was discussed [earlier](#open-a-work-folder), if closed.
179179

180180
2. Create a new **HelloWorld.py** file, following the [earlier](#open-a-work-folder) steps.
181181

@@ -214,7 +214,7 @@ Using the PySpark interactive command to submit the queries, follow these steps:
214214

215215
7. From the menu bar, navigate to **View** > **Command Palette...** or use the **Shift + Ctrl + P** keyboard shortcut, and enter **Python: Select Interpreter to start Jupyter Server**.
216216

217-
:::image type="content" source="./media/hdinsight-for-vscode/select-interpreter-to-start-jupyter-server.png" alt-text="select interpreter to start jupyter server.":::
217+
:::image type="content" source="./media/hdinsight-for-vscode/select-interpreter-to-start-jupyter-server.png" alt-text="select interpreter to start Jupyter server.":::
218218

219219
8. Select the Python option below.
220220

@@ -249,15 +249,15 @@ The tool also supports the **Spark SQL** query:
249249

250250
:::image type="content" source="./media/hdinsight-for-vscode/run-cell.png" alt-text="add #%%.":::
251251

252-
2. Click on **Run Cell**. After a few moments, the Python Interactive results appear in a new tab. Click on PySpark to switch the kernel to PySpark/Synapse PySpark, then, click on **Run Cell** again, and the code will run successfully.
252+
2. Click on **Run Cell**. After a few moments, the Python Interactive results appear in a new tab. Click on PySpark to switch the kernel to PySpark/Synapse PySpark, then click on **Run Cell** again, and the code will run successfully.
253253

254254
:::image type="content" source="./media/hdinsight-for-vscode/run-cell-get-results.png" alt-text="run cell results.":::
255255

256256
## Leverage IPYNB support from Python extension
257257

258-
1. You can create a Jupyter Notebook by command from the Command Palette or by creating a new .ipynb file in your workspace. For more information, see [Working with Jupyter Notebooks in Visual Studio Code](https://code.visualstudio.com/docs/python/jupyter-support)
258+
1. You can create a Jupyter Notebook by command from the Command Palette or by creating a new`.ipynb` file in your workspace. For more information, see [Working with Jupyter Notebooks in Visual Studio Code](https://code.visualstudio.com/docs/python/jupyter-support)
259259

260-
2. Click on **Run cell** button, follow the prompts to **Set the default spark pool** (strongly encourage to set default cluster/pool every time before opening a notebook) and then, **Reload** window.
260+
2. Click on **Run cell** button, follow the prompts to **set the default spark pool** (we suggest you to set default cluster/pool every time before opening a notebook) and then, **Reload** window.
261261

262262
:::image type="content" source="./media/hdinsight-for-vscode/set-the-default-spark-pool-and-reload.png" alt-text="set the default spark pool and reload.":::
263263

@@ -268,12 +268,12 @@ The tool also supports the **Spark SQL** query:
268268

269269
> [!NOTE]
270270
>
271-
> [For Synapse PySpark installation error](#known-issues), since its dependency will not be maintained anymore by other team, this will not be maintained anymore as well. If you trying to use Synapse Pyspark interactive, please switch to use [Azure Synapse Analytics](https://ms.web.azuresynapse.net/en-us/) instead. And it's a long term change.
271+
> [For Synapse PySpark installation error](#known-issues), since its dependency will not be maintained anymore by other team, this will not be maintained anymore as well. If you try to use Synapse Pyspark interactive, please switch to use [Azure Synapse Analytics](https://ms.web.azuresynapse.net/en-us/) instead. And it's a long term change.
272272
>
273273
274274
## Submit PySpark batch job
275275

276-
1. Reopen the **HDexample** folder that you discussed [earlier](#open-a-work-folder), if closed.
276+
1. Reopen the **`HDexample`** folder that you discussed [earlier](#open-a-work-folder), if closed.
277277

278278
2. Create a new **BatchFile.py** file by following the [earlier](#open-a-work-folder) steps.
279279

@@ -494,7 +494,7 @@ From the menu bar, go to **View** > **Command Palette**, and then enter **Azure:
494494

495495
### Synapse PySpark installation error.
496496

497-
For Synapse PySpark installation error, since its dependency will not be maintained anymore by other team, it will not be maintained anymore. If you trying to use Synapse Pyspark interactive, please use [Azure Synapse Analytics](https://ms.web.azuresynapse.net/) instead. And it's a long term change.
497+
For Synapse PySpark installation error, since its dependency will not be maintained anymore by other team, it will not be maintained anymore. If you try to use Synapse Pyspark interactive, please use [Azure Synapse Analytics](https://ms.web.azuresynapse.net/) instead. And it's a long term change.
498498

499499
:::image type="content" border="true" source="./media/hdinsight-for-vscode/known-issue.png" alt-text="synapse pyspark installation error.":::
500500

0 commit comments

Comments
 (0)