You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spot.apache.org by ev...@apache.org on 2017/01/25 18:36:28 UTC

[16/49] incubator-spot git commit: Modified spot.conf to contain logic that only tries to pass the userdomain option when the spot.conf variable USER_DOMAIN is non-empty.

Modified spot.conf to contain logic that only tries to pass the userdomain option when the spot.conf variable USER_DOMAIN is non-empty.


Project: http://git-wip-us.apache.org/repos/asf/incubator-spot/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spot/commit/b9cc67d1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spot/tree/b9cc67d1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spot/diff/b9cc67d1

Branch: refs/heads/master
Commit: b9cc67d1ea4579781a95d86e1d34ea49cf069b68
Parents: 13fc718
Author: Brandon Edwards <br...@intel.com>
Authored: Tue Dec 13 12:37:48 2016 -0800
Committer: Brandon Edwards <br...@intel.com>
Committed: Tue Dec 13 12:37:48 2016 -0800

----------------------------------------------------------------------
 spot-ml/ml_ops.sh | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/b9cc67d1/spot-ml/ml_ops.sh
----------------------------------------------------------------------
diff --git a/spot-ml/ml_ops.sh b/spot-ml/ml_ops.sh
index cf1bc31..a951fe1 100755
--- a/spot-ml/ml_ops.sh
+++ b/spot-ml/ml_ops.sh
@@ -45,6 +45,14 @@ else
     RAWDATA_PATH=${PROXY_PATH}
 fi
 
+# pass the user domain designation if not empty
+
+if [ ! -z $USER_DOMAIN ] ; then
+    USER_DOMAIN_PARSER_CMD="--userdomain $USER_DOMAIN"
+else
+    USER_DOMAIN_PARSER_CMD=''
+fi
+
 FEEDBACK_PATH=${LPATH}/${DSOURCE}_scores.csv
 DUPFACTOR=1000
 
@@ -97,7 +105,7 @@ time spark-submit --class "org.apache.spot.SuspiciousConnects" \
   --dupfactor ${DUPFACTOR} \
   --feedback ${FEEDBACK_PATH} \
   --ldatopiccount ${TOPIC_COUNT} \
-  --userdomain ${USER_DOMAIN}\
+  $USER_DOMAIN_PARSER_CMD \
   --scored ${HDFS_SCORED_CONNECTS} \
   --threshold ${TOL} \
   --maxresults ${MAXRESULTS} \