-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e6afd4
commit 63d7c10
Showing
3 changed files
with
49 additions
and
6 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# OmniDataHouse | ||
|
||
Utilities for OMNILab data warehouse. | ||
Tool set for OMNILab data warehouse. | ||
|
||
|
||
## Architecture | ||
|
@@ -25,12 +25,14 @@ to add new data sources to Layer0 or Layer1. | |
|
||
* `etlers`: ETL tools for each data repo. | ||
|
||
* `porters`: automatic scripts to port a new repo perodically with ETL tools. | ||
* `porters`: automatic scripts to port a new repo periodically with ETL tools. | ||
|
||
* `repos`: documentation for each repo. | ||
|
||
* `global_config.sh`: global settings used by porters. | ||
|
||
* `workflow.sh`: global workflow to run periodically. | ||
|
||
* `README.md`: this file. | ||
|
||
|
||
|
@@ -48,3 +50,23 @@ to add new data sources to Layer0 or Layer1. | |
* [WifiSyslog](https://github.com/OMNILab/OmniDataHouse/blob/master/repos/wifi_syslog.md) | ||
|
||
* [WifiTraffic](#) | ||
|
||
|
||
## Instructions to add a new repo. | ||
|
||
1. Add a related ETL program or script to `etlers`. Each program deserves an independent folder. | ||
|
||
2. Add a shell script to call your ETL program automatically. | ||
|
||
3. Append the shell script to right position in the workflow. | ||
|
||
4. Add documentation of the new repo to `repos`. | ||
|
||
5. Contact admin to redeploy this tool set. | ||
|
||
|
||
## Contact | ||
|
||
* Xiaming Chen <[email protected]\> | ||
|
||
* Haiyang Wang <[email protected]\> |
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,25 @@ | ||
#!/bin/bash | ||
|
||
function clean_trash () { | ||
hadoop fs -rm -r .Trash/Current > /dev/null | ||
} | ||
|
||
function die () { | ||
echo "${@}" | ||
exit 1 | ||
} | ||
|
||
# Check permission | ||
if [ `whoami` != 'omnilab' ]; then | ||
die "Need permission of OMNILAB to run. Try user omnilab." | ||
fi | ||
|
||
# Global vars | ||
BASEDIR=$(dirname $0)/.. | ||
source $BASEDIR/global_config.sh | ||
|
||
## Run WifiSyslog cleansing | ||
exec '$BASEDIR/porters/wifi_syslog.sh' | ||
|
||
## Run WifiSyslogSession extraction | ||
exec '$BASEDIR/porters/wifi_syslog_session.sh' |