public static void writeSplitsFile(final Collection<Text> splits,final FileSystem fs,final Path splitsFile) throws IOException {
  try (final PrintStream out=new PrintStream(new BufferedOutputStream(fs.create(splitsFile,true)),false,CommonConstants.UTF_8)){
    for (    final Text split : splits) {
      out.println(new String(Base64.encodeBase64(split.getBytes()),CommonConstants.UTF_8));
    }
  }
 }

public static void writeSplitsFile ( final Collection < Text > splits , final FileSystem fs , final Path splitsFile ) throws IOException { try ( final PrintStream out = new PrintStream ( new BufferedOutputStream ( fs . create ( splitsFile , true ) ) , false , CommonConstants . UTF_8 ) ) { for ( final Text split : splits ) { out . println ( new String ( Base64 . encodeBase64 ( split . getBytes ( ) ) , CommonConstants . UTF_8 ) ) ; } } }
given some split points , write a base64 encoded splits file < p >
