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
After you install the prerequisites, you can install Data Lake Tools for VS Code.
33
+
After you install the prerequisites, you can install Azure Data Lake Tools for VS Code.
34
34
35
-
**To install Data Lake Tools**
35
+
**To install Azure Data Lake Tools**
36
36
37
37
1. Open Visual Studio Code.
38
-
2. Click **Extensions** in the left pane. Enter **Azure Data Lake** in the search box.
39
-
3. Click **Install** next to **Azure Data Lake tools**. After a few seconds, the **Install** button will be changed to **Reload**.
40
-
4. Click **Reload** to activate the **Azure Data Lake tools** extension.
41
-
5. Click **Reload Window** to confirm. You can see **Azure Data Lake tools** in the Extensions pane.
38
+
2. Click **Extensions** in the left pane. Enter **Azure Data Lake Tools** in the search box.
39
+
3. Click **Install** next to **Azure Data Lake Tools**. After a few seconds, the **Install** button will be changed to **Reload**.
40
+
4. Click **Reload** to activate the **Azure Data Lake Tools** extension.
41
+
5. Click **Reload Window** to confirm. You can see **Azure Data Lake Tools** in the Extensions pane.
42
42
43
43

44
44
45
45
46
46
## Activate Azure Data Lake Tools
47
47
Create a new .usql file or open an existing .usql file to activate the extension.
48
48
49
-
## Open the sample script
50
-
Open the command palette (Ctrl+Shift+P) and enter **ADL: Open Sample Script**. It opens another instance of this sample. You can also edit, configure, and submit script on this instance.
51
49
52
50
## Work with U-SQL
53
51
54
-
You need open either a U-SQL file or a folder to work with U-SQL.
52
+
To work with U-SQL, you need open either a U-SQL file or a folder.
53
+
54
+
**To open the sample script**
55
+
56
+
Open the command palette (Ctrl+Shift+P) and enter **ADL: Open Sample Script**. It opens another instance of this sample. You can also edit, configure, and submit script on this instance.
55
57
56
58
**To open a folder for your U-SQL project**
57
59
@@ -120,7 +122,7 @@ You need open either a U-SQL file or a folder to work with U-SQL.
120
122

121
123
122
124
> [!NOTE]
123
-
> After the configuration is saved, The account, database, and schema information appear on the status bar at the bottom-left corner of the corresponding .usql file file if you don’t have default context set up.
125
+
> After the configuration is saved, the account, database, and schema information appear on the status bar at the bottom-left corner of the corresponding .usql file file if you don’t have default context set up.
124
126
125
127
**Set Git Ignore**
126
128
@@ -132,10 +134,15 @@ You need open either a U-SQL file or a folder to work with U-SQL.
132
134
133
135

134
136
135
-
## Use Python, R, and CSharp code-behind file
137
+
138
+
## Work with code-behind file: CSharp, Python, and R
139
+
136
140
Azure Data Lake Tool supports multiple custom codes, the instructions see [Develop U-SQL with Python, R, and CSharp for Azure Data Lake Analytics in VSCode](data-lake-analytics-u-sql-develop-with-python-r-csharp-in-vscode.md).
137
141
138
-
## Use assemblies
142
+
## Work with assemblies
143
+
144
+
For information on developing assemblies, see [Develop U-SQL assemblies for Azure Data Lake Analytics jobs](data-lake-analytics-u-sql-develop-assemblies.md).
145
+
139
146
You can use Data Lake Tools to register custom code assemblies in the Data Lake Analytics catalog.
140
147
141
148
**To register an assembly**
@@ -200,42 +207,80 @@ The following U-SQL code demonstrates how to call an assembly. In the sample, th
200
207
USING Outputters.Tsv();
201
208
202
209
210
+
## U-SQL local run and local debug for windows users
211
+
U-SQL local run tests your local data and validates your script locally before your code is published to Data Lake Analytics. The local debug feature enables you to complete the following tasks before your code is submitted to Data Lake Analytics:
212
+
- Debug your C# code-behind.
213
+
- Step through the code.
214
+
- Validate your script locally.
215
+
216
+
For instructions on local run and local debug, see [U-SQL local run and local debug with Visual Studio Code](data-lake-tools-for-vscode-local-run-and-debug.md).
217
+
218
+
203
219
## Connect to Azure
204
220
205
221
Before you can compile and run U-SQL scripts in Data Lake Analytics, you must connect to your Azure account.
206
222
207
-
**To connect to Azure**
223
+
<bid="sign-in-by-command">To connect to Azure using command</b>
208
224
209
225
1. Select Ctrl+Shift+P to open the command palette.
210
-
2. Enter **ADL: Login**. The login information appears on the top area.
226
+
2. Enter **ADL: Login**. The login information appears at the right-bottom.
211
227
212
228

229
+
213
230

214
-
3. Click **Copy & Open** to open the login webpage with URL: https://aka.ms/devicelogin. Paste the code **G567LX42V** into the text box, and then select **Continue**.
215
231
216
-

232
+
3. Click **Copy & Open** to open the login webpage with URL: https://aka.ms/devicelogin. Paste the code into the text box, and then select **Continue**.
233
+
234
+

235
+
217
236
4. Follow the instructions to sign in from the webpage. When you're connected, your Azure account name appears on the status bar in the lower-left corner of the **VS Code** window.
218
237
219
238
> [!NOTE]
220
-
>- Data Lake Tool automatically signs in next time If you have signed in before, but you have not logged out yet.
239
+
>- Data Lake Tool automatically signs in next time if you have signed in before, but you have not logged out yet.
221
240
>- If your account has two factors enabled, we recommend that you use phone authentication rather than using a PIN.
222
241
223
242
224
243
To sign out, enter the command **ADL: Logout**.
225
244
226
-
## List your Data Lake Analytics accounts
245
+
**To connect to Azure from explorer**
227
246
228
-
To test the connection, get a list of your Data Lake Analytics accounts.
247
+
To sign in from explorer, expand **AZURE DATALAKE**, click **Sign in to Azure...**, then follow the step3 and step4 of [**To connect to Azure using command**](#sign-in-by-command).
229
248
230
-
**To list the Data Lake Analytics accounts under your Azure subscription**
249
+

250
+
251
+
You cannot sign out from explorer. To sign out, see [**To connect to Azure using command**](#sign-in-by-command).
231
252
232
-
1. Select Ctrl+Shift+P to open the command palette.
233
-
2. Enter **ADL: List Accounts**. The accounts appear in the **Output** pane.
234
253
254
+
## Create extract script
255
+
You can create EXTRACT script for .csv, .tsv, .txt files using the command **ADL: Create EXTRACT Script** or from **AZURE DATALAKE** explorer.
235
256
236
-
## Access the Data Lake Analytics catalog
257
+
**To create EXTRACT script using command**
237
258
238
-
After you have connected to Azure, you can use the following steps to access the U-SQL catalog.
259
+
1. Select Ctrl+Shift+P to open the command palette, enter **ADL: Create EXTRACT Script**.
260
+
2. Specify the full path for an Azure storage file, press **Enter**.
261
+
3. Select one account.
262
+
4. For .txt file, select a delimiter to extract the file.
The extract script is generated based on your entries. For the script that cannot detect the columns, choose one from the two options. If not, only one script will be generated.
Another way to create EXTRACT script is through the right-click menu on the .csv, .tsv, .txt file in data lake storage or blob storage.
273
+
274
+

275
+
276
+
## Integrate with Azure Data Lake Analytics through command
277
+
278
+
You can access Azure Data Lake Analytics resources including list accounts, access metadata, and view analytics jobs.
279
+
280
+
**To list the Azure Data Lake Analytics accounts under your Azure subscription**
281
+
282
+
1. Select Ctrl+Shift+P to open the command palette.
283
+
2. Enter **ADL: List Accounts**. The accounts appear in the **Output** pane.
239
284
240
285
**To access Azure Data Lake Analytics metadata**
241
286
@@ -244,17 +289,15 @@ After you have connected to Azure, you can use the following steps to access the
244
289
3. Select one of the Data Lake Analytics databases.
245
290
4. Select one of the schemas. You can see the list of tables.
246
291
247
-
## View Data Lake Analytics jobs
248
-
249
-
**To view Data Lake Analytics jobs**
292
+
**To view Azure Data Lake Analytics jobs**
250
293
1. Open the command palette (Ctrl+Shift+P) and select **ADL: Show Jobs**.
251
294
2. Select a Data Lake Analytics or local account.
252
295
3. Wait for the jobs list for the account to appear.
253
296
4. Select a job from job list, Data Lake Tools opens the job view in the right pane and displays some information in VS Code **OUTPUT**.
254
297
255
298

256
299
257
-
## Azure Data Lake Storage integration
300
+
## Integrate with Azure Data Lake Storage through command
258
301
259
302
You can use Azure Data Lake Storage-related commands to:
260
303
- Browse through the Azure Data Lake Storage resources. [List the storage path](#list-the-storage-path).
@@ -306,7 +349,7 @@ As the same time, you can monitor the [uploading status](#check-storage-tasks-st
306
349
307
350
308
351
### Download file
309
-
You can download files by entering the commands **ADL: Download File** or **ADL: Download File (Advanced)**.
352
+
You can download files using the commands **ADL: Download File** or **ADL: Download File (Advanced)**.
310
353
311
354
**To download files though the ADL: Download File (Advanced)**
312
355
1. Right-click the script editor, and then select **Download File (Advanced)**.
@@ -339,13 +382,10 @@ The status displays on the bottom of the status bar when completed downloading a
339
382
340
383

341
384
342
-
## VSCode Explorer integration with Azure Data Lake
343
-
344
-
**Azure Integration**
345
385
346
-
- Before login to Azure, you can always expand **AZURE DATALAKE**, then click **Sign in to Azure** to login to Azure. After login, you will see all the subscriptions under your Azure account are listed in the left panel of the **AZURE DATALAKE**.
386
+
## Integrate with Azure Data Lake Analytics from explorer
## Integrate with Azure Data Lake Storage from explorer
371
411
372
412
Navigate to **Data Lake Store**
373
413
374
-
- On the folder node, you can **Refresh**, **Delete**, **Upload**, **Upload Folder**, **Copy Relative Path**, **Copy Full Path** in the right-click context menu.
414
+
- On the folder node, you can **Refresh**, **Delete**, **Upload**, **Upload Folder**, **Copy Relative Path**, and **Copy Full Path** in the right-click context menu.
- On the file node, you can **Download**, **Preview**, **Delete**, **Copy Relative Path**, **Copy Full Path** in the right-click context menu.
418
+
- On the file node, you can **Preview**, **Download**, **Delete**, **Create EXTRACT Script** (only available for CSV, TSV and TXT files), as well as **Copy Relative Path**, and **Copy Full Path** in the right-click context menu.
- On the file node, you can **Preview/Edit**, **Download**, **Delete**, **Copy Relative Path**, **Copy Full Path** in the right-click context menu.
434
+
- On the file node, you can **Preview/Edit**, **Download**, **Delete**, **Create EXTRACT Script** (only available for CSV, TSV and TXT files), as well as **Copy Relative Path**, and**Copy Full Path** in the right-click context menu.

397
437
398
438
## Open ADL storage explorer in portal
399
439
1. Select Ctrl+Shift+P to open the command palette.
@@ -402,14 +442,6 @@ Navigate to **Blob Storage**
402
442
403
443
Data Lake Tools opens the Azure storage path in the Azure portal. You can find the path and preview the file from the web.
404
444
405
-
## Local run and local debug for Windows users
406
-
U-SQL local run tests your local data and validates your script locally before your code is published to Data Lake Analytics. The local debug feature enables you to complete the following tasks before your code is submitted to Data Lake Analytics:
407
-
- Debug your C# code-behind.
408
-
- Step through the code.
409
-
- Validate your script locally.
410
-
411
-
For instructions on local run and local debug, see [U-SQL local run and local debug with Visual Studio Code](data-lake-tools-for-vscode-local-run-and-debug.md).
412
-
413
445
## Additional features
414
446
415
447
Data Lake Tools for VS Code supports the following features:
0 commit comments