| <?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. |
| --> |
| <!-- |
| The value of 'host' attribute of keyspace tag should match exactly what is in |
| gora.properties file. Essentially this means that if you are using port number, you should |
| use it every where regardless of whether it is the default port or not. |
| At runtime Gora will otherwise try to connect to localhost |
| https://issues.apache.org/jira/browse/GORA-269 |
| |
| The value of 'ttl' (time to live) attribute of field tag should most likely always |
| be zero unless you want Cassandra to create Tombstones and delete portions of your |
| data once this period expires. Any positive value is read and bound to the number |
| of seconds after which the value for that field will disappear. |
| |
| The value used here for 'gc_grace_seconds' of '0' is ONLY VIABLE FOR SINGLE NODE |
| CLUSTER. you should update this value according to your cluster configuration. |
| https://wiki.apache.org/cassandra/StorageConfiguration |
| |
| More information on gora-cassandra configuration and mapping's can be found |
| at http://gora.apache.org/current/gora-cassandra.html |
| --> |
| |
| <gora-otd> |
| |
| <keyspace name="chukwachunk" cluster="Test Cluster" host="localhost:9160"> |
| <family name="log" gc_grace_seconds="0"/> |
| </keyspace> |
| <class keyClass="java.lang.String" name="org.apache.hadoop.chukwa.datacollection.writer.gora.ChukwaChunk" keyspace="chukwachunk"> |
| <!-- log fields --> |
| <field name="source" family="log" qualifier="src" ttl=0 /> |
| <field name="tags" family="log" qualifier="tag" ttl=0 /> |
| <field name="datatype" family="log" qualifier="dt" ttl=0 /> |
| <field name="sequenceID" family="log" qualifier="sid" ttl=0 /> |
| <field name="name" family="log" qualifier="n" ttl=0 /> |
| <field name="data" family="log" qualifier="dat" ttl=0 /> |
| </class> |
| |
| </gora-otd> |