private void generateHiveTestFiles() throws FileNotFoundException {
  try (PrintWriter writerA=new PrintWriter(new File(testWorkDir,"data-a"));PrintWriter writerB=new PrintWriter(new File(testWorkDir,"data-b"))){
    char sep='\t';
    int idB=0;
    int idA=0;
    int v=1000;
    for (int i=0; i < 1000; i++) {
      writerA.print(idA++);
      writerA.print(sep);
      writerA.println(idB);
      writerB.print(idB++);
      writerB.print(sep);
      writerB.println(v+=2);
      writerB.print(idB++);
      writerB.print(sep);
      writerB.println(v+=2);
    }
    writerA.flush();
    writerB.flush();
  }
 }

private void generateHiveTestFiles ( ) throws FileNotFoundException { try ( PrintWriter writerA = new PrintWriter ( new File ( testWorkDir , "data-a" ) ) ; PrintWriter writerB = new PrintWriter ( new File ( testWorkDir , "data-b" ) ) ) { char sep = '\t' ; int idB = 0 ; int idA = 0 ; int v = 1000 ; for ( int i = 0 ; i < 1000 ; i ++ ) { writerA . print ( idA ++ ) ; writerA . print ( sep ) ; writerA . println ( idB ) ; writerB . print ( idB ++ ) ; writerB . print ( sep ) ; writerB . println ( v += 2 ) ; writerB . print ( idB ++ ) ; writerB . print ( sep ) ; writerB . println ( v += 2 ) ; } writerA . flush ( ) ; writerB . flush ( ) ; } }
generates two data files to join its with hive .
