in src/hbase/client/hbase-configuration-loader.cc [111:132]
optional<Configuration> HBaseConfigurationLoader::LoadDefaultResources() {
SetDefaultSearchPath();
AddDefaultResources();
ConfigMap conf_property;
bool success = false;
for (auto dir : search_paths_) {
for (auto file : resources_) {
std::string config_file = dir + file;
std::ifstream stream(config_file);
if (stream.is_open()) {
success |= LoadProperties(config_file, conf_property);
} else {
DLOG(WARNING) << "Unable to open file[" << config_file << "]";
}
}
}
if (success) {
return Configuration(conf_property);
} else {
return none;
}
}