Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Adding new model for the DataPackage, updating Kafka spark connecter,…
… Modifying pipeline
- Loading branch information
Evan Langlais
committed
Mar 5, 2019
1 parent
7343c96
commit af640d8
Showing
17 changed files
with
1,359 additions
and
642 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
job_name="pp.kso.collectd" | ||
zookeeper_connect="sd5-data.engr.uconn.edu:2181" | ||
broker_list="sd5-data.engr.uconn.edu:9092" | ||
consumer_group="pp.kso.collectd" | ||
zookeeper_timeout=6000 | ||
topic_list="GeneratorData" | ||
opentsdb="sd5-data.engr.uconn.edu:4242" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"namespace": "com.powerpanel.kso.model", | ||
"type": "record", | ||
"name": "DataPackage", | ||
"fields": [ | ||
{ | ||
"type": "int", | ||
"name": "generator" | ||
}, | ||
{ | ||
"name": "region", | ||
"type": { | ||
"name": "Region", | ||
"type": "enum", | ||
"symbols": ["NORTHEAST", "SOUTHEAST", "WEST", "MIDWEST"] | ||
} | ||
}, | ||
{ | ||
"name": "state", | ||
"type": { | ||
"name": "State", | ||
"type": "enum", | ||
"symbols": ["AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DE", "FL", "GA", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ", "NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VT", "VA", "WA", "WV", "WI", "WY"] | ||
} | ||
}, | ||
{ | ||
"name": "data", | ||
"type": { | ||
"type": "array", | ||
"items": { | ||
"name": "MetricData", | ||
"type": "record", | ||
"fields": [ | ||
{ | ||
"name": "metric", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "datapoints", | ||
"type": { | ||
"type": "array", | ||
"items": { | ||
"name": "DataPoint", | ||
"type": "record", | ||
"fields": [ | ||
{ | ||
"name": "timestamp", | ||
"type": "long" | ||
}, | ||
{ | ||
"name": "value", | ||
"type": ["long", "double"] | ||
} | ||
] | ||
} | ||
|
||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "rawdata", | ||
"type": "bytes" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.