2017-08-16 50 views
1

我試圖運行與Python擴展本地使用VS 2017U型SQL,Python和本地執行, 「設備未找到」 錯誤

我按照這些步驟爲U-SQL作業:

  1. https://1drv.ms/w/s!AvdZLquGMt47g0NultCKgm38sejs

  2. https://blogs.msdn.microsoft.com/azuredatalake/2017/02/20/enabling-u-sql-advanced-analytics-for-local-execution/

然後我試圖るn這個:

  • https://docs.microsoft.com/en-us/azure/data-lake-analytics/data-lake-analytics-u-sql-python-extensions
  • ,如果我在Azure上運行它,它工作正常,但如果我嘗試在本地運行它,我得到的錯誤是:「設備不被讀取「。

    詳情:

    Start : 2017-08-16 14:35:13 
    Initialize : 2017-08-16 14:35:13 
    GraphParse : 2017-08-16 14:35:13 
    Run : 2017-08-16 14:35:13 
    Start 'Root' : 2017-08-16 14:35:13 
    End 'Root(Success)' : 2017-08-16 14:35:13 
    Start '1_SV1_Extract' : 2017-08-16 14:35:13 
    End '1_SV1_Extract(Error)' : 2017-08-16 14:35:14 
    Completed with 'Error' : 2017-08-16 14:35:14 
    Execution failed with error '1_SV1_Extract Error : '{"diagnosticCode":195887147,"severity":"Error","component":"RUNTIME","source":"User","errorId":"E_RUNTIME_USER_UNHANDLED_EXCEPTION_FROM_USER_CODE","message":"An unhandled exception from user code has been reported","description":"Unhandled exception from user code: \"The device is not ready.\r\n\"\nThe details includes more information including any inner exceptions and the stack trace where the exception was raised.","resolution":"Make sure the bug in the user code is fixed.","helpLink":"","details":"==== Caught exception System.IO.IOException\n\n at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\r\n at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)\r\n at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)\r\n at System.IO.Compression.ZipFileExtensions.ExtractToDirectory(ZipArchive source, String destinationDirectoryName)\r\n at System.IO.Compression.ZipFile.ExtractToDirectory(String sourceArchiveFileName, String destinationDirectoryName, Encoding entryNameEncoding)\r\n at Microsoft.MetaAnalytics.LanguageWorker.UsqlPyExecution.LocatePython(String version) in C:\\Users\\shravan\\Source\\Repos\\VSTS\\USqlExtensions\\lang\\python\\AFx\\Product\\Source\\Modules\\LanguageWorker\\LanguageWorker.Dll\\UsqlExecution.cs:line 146\r\n at Microsoft.MetaAnalytics.LanguageWorker.UsqlPyExecution.InvokeLanguage(String version, String scriptname, IList`1 infiles, IList`1 outfiles, IObserver`1 stringLogger) in C:\\Users\\shravan\\Source\\Repos\\VSTS\\USqlExtensions\\lang\\python\\AFx\\Product\\Source\\Modules\\LanguageWorker\\LanguageWorker.Dll\\UsqlExecution.cs:line 89\r\n at Microsoft.MetaAnalytics.LanguageWorker.UsqlPyExecution.Run(IRowset input, IUpdatableRow output, String script, String version) in C:\\Users\\shravan\\Source\\Repos\\VSTS\\USqlExtensions\\lang\\python\\AFx\\Product\\Source\\Modules\\LanguageWorker\\LanguageWorker.Dll\\UsqlExecution.cs:line 42\r\n at Extension.Python.Reducer.<Reduce>d__6.MoveNext() in C:\\Users\\shravan\\Source\\Repos\\VSTS\\USqlExtensions\\lang\\python\\ExtPy\\PyReducer.cs:line 56\r\n at ScopeEngine.SqlIpReducer<Extract_0_Data0,Process_1_Data0,ScopeEngine::KeyComparePolicy<Extract_0_Data0,3> >.GetNextRow(SqlIpReducer<Extract_0_Data0\\,Process_1_Data0\\,ScopeEngine::KeyComparePolicy<Extract_0_Data0\\,3> >* , Process_1_Data0* output) in c:\\users\\e\\source\\repos\\usqlapplication1\\usqlapplication1\\bin\\debug\\1b720f51a8b3caea\\script_fe316531c87f021f\\sqlmanaged.h:line 2788\r\n at std._Func_class<void>.()(_Func_class<void>*)\r\n at RunAndHandleClrExceptions(function<void __cdecl(void)>* code)","internalDiagnostics":""} 
    ' 
    ' 
    Execution failed ! 
    

    我知道,博客文章中提到,在本地運行Python擴展不正式支持,但他們並使其聽起來像它應該至少有可能以某種方式?

    如果我不在本地使用Python擴展而運行U-SQL腳本,則不會收到任何錯誤。

    有什麼我失蹤?有沒有我可以打開的日誌來了解更多信息?有沒有人成功地在本地使用U-SQL運行Python?

    +1

    我聯繫了當地隊伍,看他們是否可以提供幫助。 –

    回答

    4

    (Azure的數據湖隊這邊)

    有沒有在Python的分佈是如何坐落在Azure的數據分析湖服務最近的一次更新。雖然這種改變改善了頂點啓動時間,但它也破壞了關於本地U-SQL腳本執行的一些基本假設。

    該團隊正在研究一種替代解決方案,該解決方案將使本地執行的U-SQL腳本使用安裝在同一本地計算機上的現有Python分發。

    +0

    是否有更新?我仍然努力讓U-SQL中的python在本地工作。 –