HDInsight安装失败

时间:2016-06-23 08:45:32

标签: hortonworks-data-platform hdinsight

我正在尝试使用Web Platform Installer 5.0为Windows Azure安装Microsoft HDInsight Emulator。安装Hortonworks Data Platform时安装失败。以下是安装后日志的一部分:

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版本来自日志? 你能帮我解决这个问题吗? 提前谢谢。

1 个答案:

答案 0 :(得分:0)

我找到了失败的原因。这个命令被安装程序用单引号括起来,命令提示符无法识别它。用双引号替换单引号后,我没有收到此错误。