private static Properties loadProperties(){
  Properties properties=new Properties();
  File file=new File("DataPartitioner.properties");
  FileInputStream fis=null;
  try {
    if (file.exists()) {
      fis=new FileInputStream(file);
      properties.load(fis);
    }
  }
 catch (  Exception e) {
    LOGGER.error(e,e.getMessage());
  }
 finally {
    if (null != fis) {
      try {
        fis.close();
      }
 catch (      IOException e) {
        LOGGER.error(e,e.getMessage());
      }
    }
  }
  return properties;
}

private static Properties loadProperties ( ) { Properties properties = new Properties ( ) ; File file = new File ( "DataPartitioner.properties" ) ; FileInputStream fis = null ; try { if ( file . exists ( ) ) { fis = new FileInputStream ( file ) ; properties . load ( fis ) ; } } catch ( Exception e ) { LOGGER . error ( e , e . getMessage ( ) ) ; } finally { if ( null != fis ) { try { fis . close ( ) ; } catch ( IOException e ) { LOGGER . error ( e , e . getMessage ( ) ) ; } } } return properties ; }
read the properties from csvfilepartitioner . properties
