| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <!-- |
| In addition to family 'name' and 'maxVersions' attributes, |
| individual table families can ve defined with several other |
| attributes such as |
| compression="$$$" - the compression option to use in HBase. |
| blockCache="$$$" - an LRU cache that contains three levels of block priority |
| to allow for scan-resistance and in-memory ColumnFamilies. |
| blockSize="$$$" - The blocksize can be configured for each ColumnFamily in |
| a table, and this defaults to 64k. |
| bloomFilter="$$$" - Bloom Filters can be enabled per-ColumnFamily. |
| maxVersions="$$$" - The maximum number of row versions to store is configured |
| per column family via HColumnDescriptor. |
| timeToLive="$$$" - ColumnFamilies can set a TTL length in seconds, and HBase |
| will automatically delete rows once the expiration time is |
| reached. |
| inMemory="$$$" - ColumnFamilies can optionally be defined as in-memory. |
| |
| You should consult the current Gora gora-hbase documentation |
| for further information on properties and mapping configurtion. |
| http://gora.apache.org/current/gora-hbase.html |
| --> |
| |
| <gora-otd> |
| |
| <table name="chukwachunk"> |
| <family name="log" maxVersions="1"/> |
| </table> |
| <class table="chukwachunk" keyClass="java.lang.String" name="org.apache.hadoop.chukwa.datacollection.writer.gora.ChukwaChunk"> |
| <!-- log fields --> |
| <field name="source" family="log" qualifier="src"/> |
| <field name="tags" family="log" qualifier="tag"/> |
| <field name="datatype" family="log" qualifier="dt"/> |
| <field name="sequenceID" family="log" qualifier="sid"/> |
| <field name="name" family="log" qualifier="n"/> |
| <field name="data" family="log" qualifier="dat"/> |
| </class> |
| |
| </gora-otd> |