METHOD_0 ( ) { org . apache . hadoop . conf . Configuration conf = org . apache . hadoop . hdfs . IDENT_0 . METHOD_1 ( org . apache . hadoop . hdfs . web . IDENT_1 . IDENT_2 ) ; conf . set ( org . apache . hadoop . hdfs . web . IDENT_3 , ( ( ( org . apache . hadoop . hdfs . protocol . IDENT_4 . IDENT_5 ) + STRING_0 ) + ( org . apache . hadoop . hdfs . web . IDENT_1 . IDENT_2 ) ) ) ; org . apache . hadoop . hdfs . IDENT_6 cluster = null ; org . apache . hadoop . fs . IDENT_7 fs = null ; final org . apache . hadoop . fs . Path p = new org . apache . hadoop . fs . Path ( STRING_1 ) ; final byte [ ] data = STRING_2 . getBytes ( ) ; try { cluster = new org . apache . hadoop . hdfs . IDENT_6 . Builder ( conf ) . METHOD_2 ( org . apache . hadoop . hdfs . web . IDENT_1 . IDENT_8 ) . METHOD_3 ( 1 ) . build ( ) ; org . apache . hadoop . hdfs . server . IDENT_9 . IDENT_10 . IDENT_11 . METHOD_4 ( cluster , conf , org . apache . hadoop . hdfs . web . IDENT_1 . IDENT_2 ) ; cluster . METHOD_5 ( ) ; fs = org . apache . hadoop . fs . IDENT_7 . get ( org . apache . hadoop . hdfs . web . IDENT_1 . IDENT_12 , conf ) ; cluster . METHOD_6 ( 1 ) ; org . apache . hadoop . fs . IDENT_13 out = fs . create ( p ) ; cluster . METHOD_7 ( 1 ) ; cluster . METHOD_6 ( 0 ) ; out . write ( data ) ; out . close ( ) ; org . apache . hadoop . fs . IDENT_14 in = fs . METHOD_8 ( p ) ; byte [ ] buf = new byte [ data . length ] ; org . apache . hadoop . io . IDENT_15 . METHOD_9 ( in , buf , 0 , buf . length ) ; "<AssertPlaceHolder>" ; } finally { org . apache . hadoop . io . IDENT_15 . METHOD_10 ( null , fs ) ; if ( cluster != null ) { cluster . METHOD_11 ( ) ; } } } METHOD_9 ( org . apache . hadoop . io . InputStream , byte [ ] , int , int ) { int IDENT_16 = len ; while ( IDENT_16 > 0 ) { int ret = in . read ( buf , IDENT_17 , IDENT_16 ) ; if ( ret < 0 ) { throw new org . apache . hadoop . io . IOException ( STRING_3 ) ; } IDENT_16 OP_0 ret ; IDENT_17 += ret ; } }
org . junit . Assert . assertArrayEquals ( data , buf )