Created
March 15, 2018 10:47
-
-
Save franchb/b3821e2050530b7637ac90ba237a8262 to your computer and use it in GitHub Desktop.
My Hadoop settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create HADOOP_HOME environment variable pointing to your installation folder selected above. | |
Without admin: | |
$env:HADOOP_HOME = "D:\Tools\Hadoop" | |
With admin: | |
[Environment]::SetEnvironmentVariable("HADOOP_HOME", "D:\Tools\Hadoop", "Machine") | |
Add Hadoop bin folder to your Windows Path variable as %HADOOP_HOME%\bin. | |
Without admin: | |
$ENV:PATH=”$ENV:PATH;%HADOOP_HOME%\bin” | |
With admin: | |
$oldpath = (Get-ItemProperty -Path ‘Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment’ -Name PATH).path | |
$newpath = “$oldpath;%HADOOP_HOME%\bin” | |
Set-ItemProperty -Path ‘Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment’ -Name PATH -Value $newPath |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment