Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Avro >> mail # user >> Schema not getting saved along with Data


+
Sachneet Singh Bains 2014-03-25, 14:19
+
Eric Wasserman 2014-03-25, 16:26
+
Sachneet Singh Bains 2014-03-26, 05:56
+
Sean Busbey 2014-03-26, 06:06
+
Sachneet Singh Bains 2014-03-26, 08:38
+
Lewis John Mcgibbney 2014-03-26, 09:56
+
Sachneet Singh Bains 2014-03-26, 10:58
+
Lewis John Mcgibbney 2014-03-26, 11:08
Copy link to this message
-
Re: Schema not getting saved along with Data
Hi Again,
Slight update on one of my previous answers. Please see below.

On Wed, Mar 26, 2014 at 9:55 AM, Lewis John Mcgibbney <
[EMAIL PROTECTED]> wrote:

permanently included in the generated data bean. This way you know the
Schema when you read your data. You can see an example here

https://svn.apache.org/repos/asf/gora/branches/GORA_94/gora-core/src/examples/java/org/apache/gora/examples/generated/WebPage.java

public static final org.apache.avro.Schema SCHEMA$ = new
org.apache.avro.Schema.Parser().parse("{\"type\":\"record\",\"name\":\"WebPage\",...
blah blah blah

i would therefore question a justification as to why you _need_ to store
the Schema with the data. Gora enables you to _almost_ forget about complex
mappings and underlying data modeling. We want to make it easy for people
to persist their data into a whole variety of underlying NoSQL stores. As a
data serialization library Avro seems to be working well for us in this
respect at this point in time.
Thanks
Lewis

 
+
Martin Kleppmann 2014-03-31, 15:50
+
Lewis John Mcgibbney 2014-04-01, 10:13
+
Martin Kleppmann 2014-04-02, 21:02
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB