5.5. Enable networking configurations for Workgroups

The MSI installation scripts and many utility scripts within HDP require Powershell scripts to be enabled, on every host machine in your Hadoop cluster. Furthermore, the utility scripts (for starting and stopping the whole cluster with a single command) provided with HDP, requires remote scripting and trust to be enabled. Therefore, we strongly recommend that you complete the following three settings on every host in your cluster.

You can set these in Active Directory via Group Policies (for a Group including all hosts in your Hadoop cluster), or you can execute the given Powershell commands on every host in your cluster.

[Important]Important

Ensure that the Administrator account on the Windows Server node has a password. The remote scripting below will not work if the Administrator account has an empty password.

Enable remote scripting using Powershell commands

  1. On each host in the cluster, execute the following commands in a Powershell window with "Run as Administrator" elevation:

    Set-ExecutionPolicy "AllSigned"
    Enable-PSRemoting
    Set-item wsman:localhost\client\trustedhosts -value "Host1,Host2" 

    The last argument is a list of comma-separated hostnames in your cluster (for example, "HadoopHost1, HadoopHost2, HadoopHost3").

  2. On each host in the cluster, execute the following commands in a Powershell window with "Run as Administrator" elevation:

    winrm quickconfig
     winrm set winrm/config/client '@{TrustedHosts="host1, host2, host3"}'

    The last argument is a list of comma-separated hostnames in your cluster (for example, "HadoopHost1, HadoopHost2, HadoopHost3").