You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Bill Graham (JIRA)" <ji...@apache.org> on 2011/08/15 19:07:27 UTC

[jira] [Created] (AVRO-875) Support the ability to load a schema from a URL

Support the ability to load a schema from a URL
-----------------------------------------------

                 Key: AVRO-875
                 URL: https://issues.apache.org/jira/browse/AVRO-875
             Project: Avro
          Issue Type: New Feature
            Reporter: Bill Graham
            Assignee: Bill Graham


It would be very convenient to load an Avro Schema or Protocol from a URL. This would allow for schema repositories.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (AVRO-875) Support the ability to load a schema from a URL

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Doug Cutting updated AVRO-875:
------------------------------

    Resolution: Not A Problem
        Status: Resolved  (was: Patch Available)

> Support the ability to load a schema from a URL
> -----------------------------------------------
>
>                 Key: AVRO-875
>                 URL: https://issues.apache.org/jira/browse/AVRO-875
>             Project: Avro
>          Issue Type: New Feature
>            Reporter: Bill Graham
>            Assignee: Bill Graham
>         Attachments: AVRO-875_1.patch
>
>
> It would be very convenient to load an Avro Schema or Protocol from a URL. This would allow for schema repositories.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (AVRO-875) Support the ability to load a schema from a URL

Posted by "Bill Graham (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bill Graham updated AVRO-875:
-----------------------------

    Release Note: Support for loading Schemas and Protocols from a URL.
          Status: Patch Available  (was: Open)

> Support the ability to load a schema from a URL
> -----------------------------------------------
>
>                 Key: AVRO-875
>                 URL: https://issues.apache.org/jira/browse/AVRO-875
>             Project: Avro
>          Issue Type: New Feature
>            Reporter: Bill Graham
>            Assignee: Bill Graham
>         Attachments: AVRO-875_1.patch
>
>
> It would be very convenient to load an Avro Schema or Protocol from a URL. This would allow for schema repositories.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AVRO-875) Support the ability to load a schema from a URL

Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13085194#comment-13085194 ] 

Doug Cutting commented on AVRO-875:
-----------------------------------

This is equivalent to parse(url.openStream()), no?

A URL is generally less available than a File.  Most applications that used URLs for Schemas would probably require more than this, since they'd probably want to cache the content, perhaps to a file, so they could continue to operate when the URL's content is not available on the network.  So I wonder if this method will be that useful on its own.

Do you have a use case where this API would be convenient?  Can you please describe it a bit?  Thanks!

> Support the ability to load a schema from a URL
> -----------------------------------------------
>
>                 Key: AVRO-875
>                 URL: https://issues.apache.org/jira/browse/AVRO-875
>             Project: Avro
>          Issue Type: New Feature
>            Reporter: Bill Graham
>            Assignee: Bill Graham
>         Attachments: AVRO-875_1.patch
>
>
> It would be very convenient to load an Avro Schema or Protocol from a URL. This would allow for schema repositories.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (AVRO-875) Support the ability to load a schema from a URL

Posted by "Bill Graham (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AVRO-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13085215#comment-13085215 ] 

Bill Graham commented on AVRO-875:
----------------------------------

The use case I have in mind is of an internal repository that would me more available than fetching Schema over the public internet. We might have multiple producers of a given data type (Pig MR jobs, Java standalone writers, etc.). Being able to pull files from a URL would be convenient even if only utilized in development.

Yes, we could just use url.openStream() though, which slipped my mind. For that reason I think we can just close this JIRA out if you agree.

> Support the ability to load a schema from a URL
> -----------------------------------------------
>
>                 Key: AVRO-875
>                 URL: https://issues.apache.org/jira/browse/AVRO-875
>             Project: Avro
>          Issue Type: New Feature
>            Reporter: Bill Graham
>            Assignee: Bill Graham
>         Attachments: AVRO-875_1.patch
>
>
> It would be very convenient to load an Avro Schema or Protocol from a URL. This would allow for schema repositories.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (AVRO-875) Support the ability to load a schema from a URL

Posted by "Bill Graham (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AVRO-875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bill Graham updated AVRO-875:
-----------------------------

    Attachment: AVRO-875_1.patch

Attaching patch #1 which adds a parse(URL) method to both Schema.Parser and Protocol.Parser.

> Support the ability to load a schema from a URL
> -----------------------------------------------
>
>                 Key: AVRO-875
>                 URL: https://issues.apache.org/jira/browse/AVRO-875
>             Project: Avro
>          Issue Type: New Feature
>            Reporter: Bill Graham
>            Assignee: Bill Graham
>         Attachments: AVRO-875_1.patch
>
>
> It would be very convenient to load an Avro Schema or Protocol from a URL. This would allow for schema repositories.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira