Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
JkSelf committed Jul 9, 2024
1 parent e684aa6 commit 60289eb
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,18 @@ HdfsMiniCluster::HdfsMiniCluster() {
if (result != 0) {
std::cout << "Failed to install JVM." << std::endl;
return; // Exit if installation fails
} else {
std::cout << "Successfully install JVM"
<< "\n";
}

result = system("ls /usr/lib/jvm/java-1.8.0-openjdk/");
if (result != 0) {
std::cout << "Failed ls /usr/lib/jvm/java-1.8.0-openjdk/"
<< "\n";
} else {
std::cout << "Successfully ls /usr/lib/jvm/java-1.8.0-openjdk/"
<< "\n";
}

env_["PATH"] = env_["PATH"].to_string() + jvmSearchPath;
Expand All @@ -93,6 +105,8 @@ HdfsMiniCluster::HdfsMiniCluster() {
VELOX_FAIL(
"Failed to find minicluster jvm executable {}'",
miniJvmClusterExecutableName);
} else {
std::cout << "the exePath_ is " << exePath_.string() << "\n";
}

boost::filesystem::path javaHomeDirectory = exePath_;
Expand Down

0 comments on commit 60289eb

Please sign in to comment.