設定本機記憶體的數據流端點
重要
已啟用 Azure Arc 的 Azure IoT 操作預覽版目前為預覽狀態。 請勿在生產環境使用此預覽版軟體。
當正式推出的版本可使用時,您必須部署新的 Azure IoT 操作安裝。 您將無法升級預覽安裝。
請參閱 Microsoft Azure 預覽版增補使用規定,以了解適用於 Azure 功能 (搶鮮版 (Beta)、預覽版,或尚未正式發行的版本) 的法律條款。
若要將數據傳送至 Azure IoT Operations Preview 中的本機記憶體,您可以設定資料流端點。 此組態可讓您指定端點、驗證、數據表和其他設定。
必要條件
- Azure IoT 作業預覽的 實例
- 已 設定的數據流配置檔
- PersistentVolumeClaim (PVC)
建立本機記憶體數據流端點
使用本機記憶體選項將數據傳送至本機可用的永續性磁碟區,您可以透過Edge Storage Accelerator 邊緣磁碟區上傳數據。
apiVersion: connectivity.iotoperations.azure.com/v1beta1
kind: DataflowEndpoint
metadata:
name: esa
namespace: azure-iot-operations
spec:
endpointType: localStorage
localStorageSettings:
persistentVolumeClaimRef: <PVC-NAME>
PersistentVolumeClaim (PV) 必須與 DataflowEndpoint 位於相同的命名空間中。
設定數據流目的地
建立端點之後,您可以在數據流的目的地設定中指定端點名稱,以在數據流中使用它。
apiVersion: connectivity.iotoperations.azure.com/v1beta1
kind: Dataflow
metadata:
name: my-dataflow
namespace: azure-iot-operations
spec:
profileRef: default
mode: Enabled
operations:
- operationType: Source
sourceSettings:
endpointRef: mq
dataSources:
*
- operationType: Destination
destinationSettings:
endpointRef: esa
如需數據流目的地設定的詳細資訊,請參閱 建立數據流。
注意
不支援使用本機記憶體端點作為數據流中的來源。 您只能使用端點作為目的地。
支援的串行化格式
唯一支援的串行化格式是 Parquet。