Merge pull request from fsx950223:master

PiperOrigin-RevId: 270927439
This commit is contained in:
TensorFlower Gardener 2019-09-24 10:13:11 -07:00
commit 1c751f7355

View File

@ -119,12 +119,18 @@ class LibHDFS {
status_ = TryLoadAndBind(path.c_str(), &handle_);
if (status_.ok()) {
return;
} else {
LOG(ERROR) << "HadoopFileSystem load error: "
<< status_.error_message();
}
}
// Try to load the library dynamically in case it has been installed
// to a in non-standard location.
status_ = TryLoadAndBind(kLibHdfsDso, &handle_);
if (!status_.ok()) {
LOG(ERROR) << "HadoopFileSystem load error: " << status_.error_message();
}
}
Status status_;