2016-06-23 318 views
1

我正在嘗試使用Web Platform Installer 5.0安裝適用於Windows Azure的Microsoft HDInsight仿真器。安裝Hortonworks Data Platform時安裝失敗。以下是日誌的安裝後的部分:HDInsight安裝失敗

CAQuietExec: Checking JAVA_HOME is set correctly... 
CAQuietExec: 'C:\Azul\zulu1.7.0_65-7.6.0.1-win64\bin\java -version 2>&1 | findstr /i "version"' is not recognized as an internal or external command, 
CAQuietExec: operable program or batch file. 
CAQuietExec: "1.6.0_31" was unexpected at this time. 
CAQuietExec: Error 0x800700ff: Command line returned an error. 
CAQuietExec: Error 0x800700ff: CAQuietExec Failed 
CustomAction CheckPreReq returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox) 

我已經檢查了JAVA_HOME在環境變量設置爲C:\Azul\zulu1.7.0_65-7.6.0.1-win64.當我在命令提示符下運行命令'C:\Azul\zulu1.7.0_65-7.6.0.1-win64\bin\java -version 2>&1 | findstr /i "version"',它返回的結果與版本1.7.0_65。 我不明白爲什麼在日誌中這個命令無法識別,而我能夠執行它並從1.6.0_31版本進入日誌? 你能幫我解決這個問題嗎? 在此先感謝。

+0

@Destrif感謝您提出修改建議 – dkthedon

回答

0

我找到了失敗的原因。這是命令被安裝程序用單引號括起來,命令提示符不能識別它。用雙引號替換單引號後,我沒有收到此錯誤。