@Test public void testGetSchemaFromHttp() throws IOException, URISyntaxException { HttpFileServer server = new HttpFileServer(NetUtils.createSocketAddr("127.0.0.1:0")); try { server.start(); InetSocketAddress addr = server.getBindAddress(); Schema schema = AvroUtil.getAvroSchemaFromHttp("http: assertEquals(expected, schema); } finally { server.stop(); } }
public static Schema getAvroSchemaFromHttp(String schemaURL) throws IOException { InputStream inputStream = new URL(schemaURL).openStream(); try { return new Schema.Parser().parse(inputStream); } finally { IOUtils.closeStream(inputStream); } }
AvroUtil { public static Schema getAvroSchemaFromHttp(String schemaURL) throws IOException { InputStream inputStream = new URL(schemaURL).openStream(); try { return new Schema.Parser().parse(inputStream); } finally { IOUtils.closeStream(inputStream); } } }
AvroUtil { public static Schema getAvroSchemaFromHttp(String schemaURL) throws IOException { InputStream inputStream = new URL(schemaURL).openStream(); try { return new Schema.Parser().parse(inputStream); } finally { IOUtils.closeStream(inputStream); } }  }
AvroUtil { public static Schema getAvroSchemaFromHttp(String schemaURL) throws IOException { InputStream inputStream = new URL(schemaURL).openStream(); try { return new Schema.Parser().parse(inputStream); } finally { IOUtils.closeStream(inputStream); } }  static Schema getAvroSchema(TableMeta meta, Configuration conf); static Schema getAvroSchemaFromHttp(String schemaURL); static Schema getAvroSchemaFromFileSystem(String schemaURL, Configuration conf); }
AvroUtil { public static Schema getAvroSchemaFromHttp(String schemaURL) throws IOException { InputStream inputStream = new URL(schemaURL).openStream(); try { return new Schema.Parser().parse(inputStream); } finally { IOUtils.closeStream(inputStream); } }  static Schema getAvroSchema(TableMeta meta, Configuration conf); static Schema getAvroSchemaFromHttp(String schemaURL); static Schema getAvroSchemaFromFileSystem(String schemaURL, Configuration conf);  }