public static void loadPropsFromFile(Path filePath,FileSystem fs) throws IOException {
  if (fs.exists(filePath)) {
    try (InputStream stream=fs.open(filePath)){
      logger.info("Loading properties file from hdfs'" + filePath.toString() + "'");
      loadProperties(stream);
    }
 catch (    IOException e) {
      logger.error("Problem loading properties file from hdfs '" + filePath.toString() + "'");
      e.printStackTrace();
    }
  }
 else {
    logger.warn("Properties file does not exist: '" + filePath.toString() + "'");
  }
}

public static void loadPropsFromFile ( Path filePath , FileSystem fs ) throws IOException { if ( fs . exists ( filePath ) ) { try ( InputStream stream = fs . open ( filePath ) ) { logger . info ( "Loading properties file from hdfs'" + filePath . toString ( ) + "'" ) ; loadProperties ( stream ) ; } catch ( IOException e ) { logger . error ( "Problem loading properties file from hdfs '" + filePath . toString ( ) + "'" ) ; e . printStackTrace ( ) ; } } else { logger . warn ( "Properties file does not exist: '" + filePath . toString ( ) + "'" ) ; } }
loads the properties from the specified file in hdfs < p > the new properties are added to the current system configuration .
