METHOD_0 ( ) { org . apache . hadoop . IDENT_0 . IDENT_1 job = new org . apache . hadoop . IDENT_0 . METHOD_1 ( ) ; for ( int k = 0 ; k < 5 ; ++ k ) { java . lang . String id = STRING_0 + k ; job . set ( IDENT_2 . IDENT_3 , id ) ; org . apache . hadoop . hive . IDENT_4 . IDENT_2 format = new org . apache . hadoop . hive . IDENT_4 . METHOD_2 ( ) ; org . apache . hadoop . hive . conf . IDENT_5 conf = new org . apache . hadoop . hive . conf . METHOD_3 ( ) ; java . net . IDENT_6 IDENT_7 = new java . net . METHOD_4 ( STRING_1 , org . apache . hadoop . hive . IDENT_4 . IDENT_8 . service . METHOD_5 ( ) ) ; org . apache . hadoop . hive . IDENT_4 . IDENT_8 . LOG . debug ( STRING_2 ) ; java . io . IDENT_9 IDENT_10 = IDENT_7 . METHOD_6 ( ) ; org . apache . hadoop . hive . IDENT_4 . IDENT_11 . IDENT_12 . IDENT_13 . IDENT_14 . METHOD_7 ( ) . METHOD_8 ( id ) . build ( ) . METHOD_9 ( IDENT_10 ) ; IDENT_10 . METHOD_10 ( ) ; java . lang . Thread . sleep ( INT_0 ) ; org . apache . hadoop . hive . IDENT_4 . IDENT_8 . LOG . debug ( STRING_3 ) ; org . apache . hadoop . IDENT_0 . IDENT_15 < org . apache . hadoop . io . IDENT_16 , org . apache . hadoop . io . IDENT_17 > writer = format . METHOD_11 ( null , job , null , null ) ; org . apache . hadoop . io . IDENT_17 text = new org . apache . hadoop . io . METHOD_12 ( ) ; org . apache . hadoop . hive . IDENT_4 . IDENT_8 . LOG . debug ( STRING_4 ) ; for ( int i = 0 ; i < 10 ; ++ i ) { text . set ( ( "" + i ) ) ; writer . write ( org . apache . hadoop . io . IDENT_16 . get ( ) , text ) ; } writer . close ( null ) ; java . io . InputStream in = IDENT_7 . METHOD_13 ( ) ; org . apache . hadoop . hive . IDENT_4 . IDENT_18 reader = new org . apache . hadoop . hive . IDENT_4 . METHOD_14 ( in , null , org . apache . hadoop . io . METHOD_12 . class , job , null , null ) ; org . apache . hadoop . hive . IDENT_4 . IDENT_8 . LOG . debug ( STRING_5 ) ; reader . METHOD_15 ( org . apache . hadoop . hive . IDENT_4 . METHOD_14 . IDENT_19 . METHOD_16 ( ) ) ; int count = 0 ; while ( reader . next ( org . apache . hadoop . io . IDENT_16 . get ( ) , text ) ) { org . apache . hadoop . hive . IDENT_4 . IDENT_8 . LOG . debug ( text . toString ( ) ) ; count ++ ; } reader . close ( ) ; "<AssertPlaceHolder>" ; } } close ( ) { IDENT_20 . close ( ) ; }
org . junit . Assert . assertEquals ( 10 , count )