protected static Schema getSchemaFromFS(String schemaFSUrl,
                          Configuration conf) throws IOException, URISyntaxException {
    FSDataInputStream in = null;
    FileSystem fs = null;
    try {
      fs = FileSystem.get(new URI(schemaFSUrl), conf);
    } catch (IOException ioe) {
      //return null only if the file system in schema is not recognized
      LOG.debug("Failed to open file system for uri {} assuming it is not a FileSystem url", schemaFSUrl, ioe);
      return null;
    }
    try {
      in = fs.open(new Path(schemaFSUrl));
      Schema s = AvroSerdeUtils.getSchemaFor(in);
      return s;
    } finally {
      if(in != null) in.close();
    }
  }
Determine the schema to that's been provided for Avro serde work.
@param properties containing a key pointing to the schema, one way or another
@return schema to use while serdeing the avro file
@throws IOException if error while trying to read the schema from another location
@throws AvroSerdeException if unable to find a schema or pointer to it in the properties
serde/src/java/org/apache/hadoop/hive/serde2/avro/AvroSerdeUtils.java