Skip to content

Instantly share code, notes, and snippets.

@kunickiaj
Created October 5, 2017 21:12
Show Gist options
  • Save kunickiaj/a92de4f39bfd28d1bd31f1c616db344d to your computer and use it in GitHub Desktop.
Save kunickiaj/a92de4f39bfd28d1bd31f1c616db344d to your computer and use it in GitHub Desktop.
spot avro schema for netflow
{
"type": "record",
"name": "RawFlowRecord",
"namespace": "com.cloudera.accelerators.flows.avro",
"fields": [{
"name": "treceived",
"type": ["string", "null"]
}, {
"name": "tryear",
"type": ["float", "null"]
}, {
"name": "trmonth",
"type": ["float", "null"]
}, {
"name": "trday",
"type": ["float", "null"]
}, {
"name": "trhour",
"type": ["float", "null"]
}, {
"name": "trminute",
"type": ["float", "null"]
}, {
"name": "trsec",
"type": ["float", "null"]
}, {
"name": "tdur",
"type": ["float", "null"]
}, {
"name": "sip",
"type": ["string", "null"]
}, {
"name": "sport",
"type": ["int", "null"]
}, {
"name": "dip",
"type": ["string", "null"]
}, {
"name": "dport",
"type": ["int", "null"]
}, {
"name": "proto",
"type": ["string", "null"]
}, {
"name": "flag",
"type": ["string", "null"]
}, {
"name": "fwd",
"type": ["int", "null"]
}, {
"name": "stos",
"type": ["int", "null"]
}, {
"name": "ipkt",
"type": ["bigint", "null"]
}, {
"name": "ibytt",
"type": ["bigint", "null"]
}, {
"name": "opkt",
"type": ["bigint", "null"]
}, {
"name": "obyt",
"type": ["bigint", "null"]
}, {
"name": "input",
"type": ["int", "null"]
}, {
"name": "output",
"type": ["int", "null"]
}, {
"name": "sas",
"type": ["int", "null"]
}, {
"name": "das",
"type": ["int", "null"]
}, {
"name": "dtos",
"type": ["int", "null"]
}, {
"name": "dir",
"type": ["int", "null"]
}, {
"name": "rip",
"type": ["string", "null"]
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment