hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Hadoop Wiki] Update of "Avro/FAQ" by TedDunning
Date Sat, 24 Apr 2010 02:09:57 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.

The "Avro/FAQ" page has been changed by TedDunning.
http://wiki.apache.org/hadoop/Avro/FAQ?action=diff&rev1=6&rev2=7

--------------------------------------------------

  '''What is AVRO ?'''
-   
+ 
  Avro is a data serialization system.
  
  Avro provides:
+ 
   * Rich data structures.
   * A compact, fast, binary data format.
   * A container file, to store persistent data.
@@ -12, +13 @@

   * Simple integration with dynamic languages.  Code generation is not required to read or
write data files nor to use or implement RPC protocols.  Code generation as an optional optimization,
only worth implementing for statically typed languages.
  
  How can I get started quickly with Avro?
+ 
   * [[http://github.com/phunt/avro-rpc-quickstart|Quick Start Guide]]
  
  How to Statically Compile:
+ 
+  * In Java: Add the avro jar, the jackson-mapper-asl.jar and jackson-core-asl.jar to your
CLASSPATH. Then run java org.apache.avro.specific.SpecificCompiler <json file>.  (this
appears to be out of date, the SpecificCompiler requires two arguments, presumably an input
and and output file, but it isn't clear that this does)
-  * In Java: Add the avro jar, the jackson-mapper-asl.jar and jackson-core-asl.jar to your
CLASSPATH. Then run java org.apache.avro.specific.SpecificCompiler <json file>.  Or
use the [[http://hadoop.apache.org/avro/docs/current/api/java/org/apache/avro/specific/SchemaTask.html|Schema]]
or [[http://hadoop.apache.org/avro/docs/current/api/java/org/apache/avro/specific/ProtocolTask.html|Protocol]]
Ant tasks.  Avro's build.xml provides examples of how these are used.
+   . Or use the [[http://hadoop.apache.org/avro/docs/current/api/java/org/apache/avro/specific/SchemaTask.html|Schema]]
or [[http://hadoop.apache.org/avro/docs/current/api/java/org/apache/avro/specific/ProtocolTask.html|Protocol]]
Ant tasks.  Avro's build.xml provides examples of how these are used.
  
  How are Strings represented in Java?
+ 
   * They use [[http://hadoop.apache.org/avro/docs/current/api/java/org/apache/avro/util/Utf8.html|org.apache.avro.util.Utf8]],
not java.lang.String.
  

Mime
View raw message