2017-07-25 60 views
1

我試圖發佈此ADF DataLakeAnalyticsU-SQL管道活動繼蔚藍步步DOC(https://docs.microsoft.com/en-us/azure/data-factory/data-factory-usql-activity)數據工廠解決方案。腳本路徑到Azure的數據工廠DataLakeAnalytics的u-SQL管道

{ 
    "type": "DataLakeAnalyticsU-SQL", 
    "typeProperties": { 
     "scriptPath": "\\scripts\\111_risk_index.usql", 
     "scriptLinkedService": "PremiumAzureDataLakeStoreLinkedService", 
     "degreeOfParallelism": 3, 
     "priority": 100, 
     "parameters": { 
     "in": "/DF_INPUT/Consodata_Prelios_consegna_230617.txt", 
     "out": "/DF_OUTPUT/111_Analytics.txt" 
     } 
    }, 
    "inputs": [ 
     { 
     "name": "PremiumDataLakeStoreLocation" 
     } 
    ], 
    "outputs": [ 
     { 
     "name": "PremiumDataLakeStoreLocation" 
     } 
    ], 

    "policy": { 
     "timeout": "06:00:00", 
     "concurrency": 1, 
     "executionPriorityOrder": "NewestFirst", 
     "retry": 1 
    }, 
    "scheduler": { 
     "frequency": "Minute", 
     "interval": 15 
    }, 
    "name": "ConsodataFilesProcessing", 
    "linkedServiceName": "PremiumAzureDataLakeAnalyticsLinkedService" 
    } 

在出版得到這個錯誤:

25/07/2017 18:51:59- Publishing Project 'Premium.DataFactory'.... 
25/07/2017 18:51:59- Validating 6 json files 
25/07/2017 18:52:15- Publishing Project 'Premium.DataFactory' to Data 
Factory 'premium-df' 
25/07/2017 18:52:15- Value cannot be null. 
Parameter name: value 

試圖弄清楚了什麼可能是錯誤的項目也提出了該問題駐留到活動選項"typeProperties"如上圖所示,專門爲scriptPathscriptLinkedService屬性。該醫生說:

scriptPath: Path to folder that contains the U-SQL script. Name of the file 
is case-sensitive. 
scriptLinkedService: Linked service that links the storage that contains the 
script to the data factory 

發佈項目沒有他們(使用硬編碼script)將成功完成。問題是,我無法弄清楚究竟把什麼放在他們身上。我嘗試了幾種組合路徑。我唯一知道的是腳本文件必須作爲依賴項在本地引用到解決方案中。

有人可以幫助我嗎?

預先感謝您。

回答

1

腳本鏈接服務需要Blob存儲,而不是Data Lake Storage。

忽略發佈錯誤,其誤導。

將解決方案中的鏈接服務提供給「scriptLinkedService」屬性中引用的Azure存儲帳戶。然後在'scriptPath'屬性中引用blob容器+路徑。

例如:

"typeProperties": { 
    "scriptPath": "datafactorysupportingfiles/CreateDimensions - Daily.usql", 
    "scriptLinkedService": "BlobStore", 
    "degreeOfParallelism": 2, 
    "priority": 7 
}, 

希望這有助於。

Ps。仔細檢查屬性名稱是否區分大小寫。它也可能導致無益的錯誤。

+0

它工作。謝謝。對此沒有文檔感到羞恥。 –

+1

這一切與新技術的試驗和錯誤:-) 我個人更喜歡在邏輯ADLa數據庫中創建我的USQL作爲存儲過程。然後調用ADF的procs。 –

+0

尊敬的法比奧,我也會建議提出針對ADF的功能請求以支持來自ADLS帳戶的腳本:) –

相關問題