Python Powershell windows server 2012。安装Hortonworks数据平台(HDP)时出现路径错误
我正在尝试在Windows server 2012环境中安装Hadoop for Windows(Hortonworks数据平台2.0),并创建下一个powershell命令Python Powershell windows server 2012。安装Hortonworks数据平台(HDP)时出现路径错误,python,powershell,hadoop,hortonworks-data-platform,Python,Powershell,Hadoop,Hortonworks Data Platform,我正在尝试在Windows server 2012环境中安装Hadoop for Windows(Hortonworks数据平台2.0),并创建下一个powershell命令 $currentPath = (Get-ItemProperty -Path $key -name) .Path + ';' 我得到这个错误 At line:1 char:52 +$currentPath = (Get-ItemProperty -Path $key -name) .Path + ';' + Unexpe
$currentPath = (Get-ItemProperty -Path $key -name) .Path + ';'
我得到这个错误
At line:1 char:52
+$currentPath = (Get-ItemProperty -Path $key -name) .Path + ';'
+
Unexpected toke '.Path' in expression or statement
+ CategoryInfo : ParserError:(:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorID : UnexpectedToken
我做错了什么,请记住,我正在处理霍顿工厂的这份官方文件
让我们看看
首先,这里有一个空格)
其次,Path似乎不是该cmdlet返回的有效属性,因此即使更正了错误空间,它仍然无法工作
第三,您正在指定参数-name,但没有提供值,经过一番研究,我终于解决了这个错误 我要做的是,使用PowerShell在Windows Server中安装HDP环境,因为我不太擅长,所以会犯一些愚蠢的错误 对于那些不太擅长使用powershell的人,有一种手动方式来安装HDP所需的环境,这要简单得多 这是链接 我希望它不能节省更多的时间