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
Copy file name to clipboardExpand all lines: articles/hdinsight/hdinsight-for-vscode.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ The following items are required for completing the steps in this article:
21
21
-[Visual Studio Code](https://code.visualstudio.com/).
22
22
-[Mono](https://www.mono-project.com/docs/getting-started/install/). Mono is required only for Linux and macOS.
23
23
-[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`.
25
25
26
26
## Install Spark & Hive Tools
27
27
@@ -43,9 +43,9 @@ After you meet the prerequisites, you can install Spark & Hive Tools for Visual
43
43
44
44
To open a work folder and to create a file in Visual Studio Code, follow these steps:
45
45
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.
47
47
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:
49
49
50
50
:::image type="content" source="./media/hdinsight-for-vscode/visual-studio-code-new-file.png" alt-text="visual studio code new file icon.":::
51
51
@@ -126,7 +126,7 @@ You can link a normal cluster by using an [Apache Ambari](https://ambari.apache.
126
126
127
127
## Set the default cluster
128
128
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.
130
130
131
131
2. Select the **HelloWorld.hql** file that was created [earlier](#open-a-work-folder). It opens in the script editor.
132
132
@@ -142,7 +142,7 @@ You can link a normal cluster by using an [Apache Ambari](https://ambari.apache.
142
142
143
143
With Spark & Hive Tools for Visual Studio Code, you can submit interactive Hive queries and Hive batch scripts to your clusters.
144
144
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.
146
146
147
147
2. Select the **HelloWorld.hql** file that was created [earlier](#open-a-work-folder). It opens in the script editor.
148
148
@@ -175,7 +175,7 @@ Users can perform PySpark interactive in the following ways.
175
175
### Using the PySpark interactive command in PY file
176
176
Using the PySpark interactive command to submit the queries, follow these steps:
177
177
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.
179
179
180
180
2. Create a new **HelloWorld.py** file, following the [earlier](#open-a-work-folder) steps.
181
181
@@ -214,7 +214,7 @@ Using the PySpark interactive command to submit the queries, follow these steps:
214
214
215
215
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**.
216
216
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.":::
218
218
219
219
8. Select the Python option below.
220
220
@@ -249,15 +249,15 @@ The tool also supports the **Spark SQL** query:
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.
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)
259
259
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.
261
261
262
262
:::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.":::
263
263
@@ -268,12 +268,12 @@ The tool also supports the **Spark SQL** query:
268
268
269
269
> [!NOTE]
270
270
>
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.
272
272
>
273
273
274
274
## Submit PySpark batch job
275
275
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.
277
277
278
278
2. Create a new **BatchFile.py** file by following the [earlier](#open-a-work-folder) steps.
279
279
@@ -494,7 +494,7 @@ From the menu bar, go to **View** > **Command Palette**, and then enter **Azure:
494
494
495
495
### Synapse PySpark installation error.
496
496
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.
0 commit comments