Skip to content

Commit

Permalink
trim fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranab Ghosh committed Oct 30, 2018
1 parent 168d8f5 commit e5d770b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions resource/cyd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ case "$1" in
--conf spark.ui.killEnabled=true --master $MASTER $CHOMBO_JAR_NAME $INPUT $OUTPUT cyd.conf
;;

"crAucInput")
echo "copying and consolidating tem aggregation output file"
cat $PROJECT_HOME/bin/beymani/output/teg/part-00000 > $PROJECT_HOME/bin/beymani/input/auc/cusage.txt
cat $PROJECT_HOME/bin/beymani/output/teg/part-00001 >> $PROJECT_HOME/bin/beymani/input/auc/cusage.txt
ls -l $PROJECT_HOME/bin/beymani/input/auc
;;

"autoCor")
echo "running AutoCorrelation Spark job"
CLASS_NAME=org.chombo.spark.explore.AutoCorrelation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ object StatsBasedOutlierPredictor extends JobConfiguration with SeasonalUtility
keyLen += (if (seasonalAnalysis && partBySeasonCycle) 1 else 0)

var taggedData = data.map(line => {
val items = line.split(fieldDelimIn, -1)
val items = BasicUtils.getTrimmedFields(line, fieldDelimIn)
val key = Record(keyLen)
//partioning fields
keyFieldOrdinals match {
Expand Down

0 comments on commit e5d770b

Please sign in to comment.