Share via


存取 Spark 筆記本中的 Fabric OneLake 快捷方式

如需快捷方式的概觀,請參閱 OneLake 快捷方式

在 Spark 筆記本中以資料夾身分存取快捷方式

快捷方式會顯示為 OneLake 中的資料夾,Spark 可以從中讀取,就像 OneLake 中的任何其他資料夾一樣。

若要以資料夾身分存取快捷方式:

  1. 從包含快捷方式的 Lakehouse 中,選取 [ 開啟筆記本 ],然後選取 [ 新增筆記本 ]。

    Screenshot showing where to find the Open notebook option on the ribbon.

  2. 選取快捷方式,然後以滑鼠右鍵按一下快捷方式中的檔案。

  3. 在滑鼠右鍵功能表中,選取 [ 載入資料 ],然後選取 [Spark ]。

    Screenshot showing where to find the Load data and Spark option in the right-click menu.

  4. 執行自動產生的程式碼資料格。

    Screenshot showing the automatically generated code cell.

以 Spark 筆記本中的資料表身分存取快捷方式

Microsoft Fabric 會在 Lakehouse 的 [資料表 ] 區段中自動辨識具有 Delta\Parquet 格式資料的快捷方式 做為資料表。 您可以直接從 Spark 筆記本參考這些資料表。

若要以資料表身分存取快捷方式:

  1. 從包含快捷方式的 Lakehouse 中,選取 [ 開啟筆記本 ],然後選取 [ 新增筆記本 ]。

    The same screenshot displayed previously, showing where to find the Open notebook option on the ribbon.

  2. 選取筆記本中的 [ 資料表] 檢視

    Screenshot showing where to select Table view.

  3. 以滑鼠右鍵按一下資料表,然後選取 [載入資料和 Spark ]。

    Screenshot showing the table right-click menu.

  4. 執行自動產生的程式碼資料格。

    Screenshot of the automatically generated code cell from Table view.

存取快捷方式的 HTTPS 和 ABFS 路徑

您也可以透過 Azure Blob 檔案系統 (ABFS) 驅動程式或 REST 端點直接存取快捷方式。 從湖屋複製這些路徑。

  1. 開啟包含快捷方式的 Lakehouse。

  2. 以滑鼠右鍵按一下快捷方式,然後選取 [ 屬性 ]。

    Screenshot showing where to select Properties on the shortcut right-click menu.

  3. 在 [屬性 ] 畫面中 ,選取 ABFS 路徑 URL 旁的 複製圖示。