Setting up Gora
As a first step, we need to download and compile the Gora source code. The source codes for the tutorial is in the gora-tutorial module. If you have already downloaded Gora, that's cool, otherwise, please go over the steps at the quickstart guide for how to download and compile Gora.
Now, after the source code for Gora is at hand, let's have a look at the files under the directory gora-tutorial.
$ cd gora-tutorial
$ tree
|-- build.xml
|-- conf
| |-- gora-hbase-mapping.xml
| |-- gora-sql-mapping.xml
| `-- gora.properties
|-- ivy
| `-- ivy.xml
`-- src
|-- examples
| `-- java
|-- main
| |-- avro
| | |-- metricdatum.json
| | `-- pageview.json
| |-- java
| | `-- org
| | `-- apache
| | `-- gora
| |
`-- tutorial
| |
`-- log
| |
|-- KeyValueWritable.java
| |
|-- LogAnalytics.java
| |
|-- LogManager.java
| |
|-- TextLong.java
| |
`-- generated
| |
|-- MetricDatum.java
| |
`-- Pageview.java
| `-- resources
| `-- access.log.tar.gz
`-- test
|-- conf
`-- java
Since gora-tutorial is a top level module of Gora, it depends on the directory structure imposed by Gora's main build scripts (pom.xml for Maven). The Java source code resides in directory src/main/java/, avro schemas in src/main/avro/, and data in src/main/resources/. |