hdp for windows 首先安装了VMware WorkStation虚拟机,虚拟机上装windows server 2008 R2 企业版。
先尝试单节点安装。
安装前的准备:
VC++ 2010 RUNTIME
Python2.7 (版本太高会装不上去,安装需要VC++ RUNTIME支持,若VC++版本低了装不上)
JDK1.7以上版本(前面傻乎乎装的1.6版本,启动hdp服务出错,马上意识到时hadoop最近的版本不支持1.6了)
.NET FrameWork 4.0以上
关闭防火墙,控制面板-防火墙-高级-预配置 公共配置 专用配置防火墙都关闭
关闭IPV6支持,网络设置里去勾选
使能远程脚本功能:在windows PowerShell中一行一行运行脚本
- Set-ExecutionPolicy "AllSigned"
- Enable-PSRemoting
- Set-item wsman:localhost\client\trustedhosts -value "localhost"
-
- winrm quickconfig
- winrm set winrm/config/client '@{TrustedHosts="localhost"}'
运行安装包msiexec /i "hdp-1.1.0-GA.winpkg.msi"
配置窗口里设置
#Log directory
HDP_LOG_DIR=c:\hadoop\logs
#Data directory
HDP_DATA_DIR=c:\hdp\data
#Hosts (Roles for the host machines in your cluster)
NAMENODE_HOST=localhost
SECONDARY_NAMENODE_HOST=localhost
JOBTRACKER_HOST=localhost
HIVE_SERVER_HOST=localhost
OOZIE_SERVER_HOST=localhost
TEMPLETON_HOST=localhost
SLAVE_HOSTS=localhost
#Database host
DB_FLAVOR=derby
DB_HOSTNAME=localhost
#Hive properties
HIVE_DB_NAME=hive
HIVE_DB_USERNAME=hive
HIVE_DB_PASSWORD=hive
#Oozie properties
OOZIE_DB_NAME=oozie
OOZIE_DB_USERNAME=oozie
OOZIE_DB_PASSWORD=oozie
20分钟安装好后启动服务start_local_hdp_services.cmd
验证安装
Run-SmokeTests.cmd 然而namenode 都没有启动,还不知道怎么查看日志,没有找到namenode的日志。 接着无聊直接想装多节点的,master slave1 slave2。这回是服务都是Stop状态。目前是这样。 Master nodes: start master
1 Master nodes successfully started.
10 Master nodes failed to start. PSComputerName Service Message Status
-------------- ------- ------- ------
master derbyserver 服务“Apache Had... Stopped
master hiveserver2 服务“Apache Had... Stopped
master jobhistoryserver 服务“Apache Had... Stopped
master metastore 服务“Apache Had... Stopped
master namenode 服务“Apache Had... Stopped
master resourcemanager 服务“Apache Had... Stopped
master secondarynamenode 服务“Apache Had... Stopped
master templeton 服务“Apache Had... Stopped
master timelineserver 服务“Apache Had... Stopped
master zkServer 服务“Apache Had... Stopped
StartStop-HDPServices : Manually start services on Master nodes then retry full
cluster start. Exiting.
所在位置 C:\hdp\manage_remote_hdp_services.ps1:187 字符: 47
+ if ($mode -eq "start") { StartStop-HDPservices <<<< ($mode) }
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorExcep
tion
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorExceptio
n,StartStop-HDPServices
本人正在很傻比的再卸载重装。
|