Skip to content

Commit

Permalink
Set hadoop home dir for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pflooky committed Mar 21, 2024
1 parent 7541628 commit 53c31b1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ object UiConfiguration {
def getInstallDirectory: String = {
val osName = System.getProperty("os.name").toLowerCase
if (osName.contains("win")) {
setHadoopHome()
val appDataDir = System.getenv("APPDATA")
s"$appDataDir/DataCaterer"
} else if (osName.contains("nix") || osName.contains("nux") || osName.contains("aix")) {
Expand All @@ -21,6 +22,10 @@ object UiConfiguration {
}
}

private def setHadoopHome(): Unit = {
System.setProperty("hadoop.home.dir", "/")
}

lazy val INSTALL_DIRECTORY = getInstallDirectory

}

0 comments on commit 53c31b1

Please sign in to comment.