Commit 8488ffd361788f4e4f528adf1796448739749d8c

Authored by evan ago
1 parent d8c6c1a5d0
Exists in master

back

Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff

... ... @@ -2,7 +2,7 @@
2 2  
3 3 BASEDIR=$(dirname $0)
4 4  
5   -if [ $# != '1' ] && [ $# != '2' ];
  5 +if [ $# != '1' ];
6 6 then
7 7 echo "usage : sh score.sh <scalaClassName>"
8 8 echo "ex) sh score.sh EditorScore"
... ... @@ -16,7 +16,7 @@
16 16 DATE_SUB="7"
17 17 DAY_TO_DELETE="$(date "+%Y%m%d" -d "$DATE_SUB days ago")"
18 18 DELETE_LOG="${LOG_DIR}/$1_$DAY_TO_DELETE.log"
19   -LOG="${LOG_DIR}/$1_$2_$TODAY.log"
  19 +LOG="${LOG_DIR}/$1_$TODAY.log"
20 20  
21 21 #HADOOP_CONF_DIR=/etc/hadoop/conf
22 22  
... ... @@ -24,7 +24,7 @@
24 24 --class $1 \
25 25 --master yarn-client \
26 26 --conf "spark.default.parallelism=250" \
27   -$BASEDIR/target/scala-2.11/dsquality-assembly-0.1.0-SNAPSHOT.jar $2 >> $LOG 2>&1
  27 +$BASEDIR/target/scala-2.11/dsquality-assembly-0.1.0-SNAPSHOT.jar >> $LOG 2>&1
28 28 #target/scala-2.11/dsmakingscore-assembly-0.1.0-SNAPSHOT.jar >> $LOG 2>&1
29 29 #target/scala-2.11/dsmakingscore_2.11-0.1.0-SNAPSHOT.jar >> $LOG 2>&1
30 30 #--jars "lib_managed/jars/mysql/mysql-connector-java/mysql-connector-java-5.1.36.jar" \