aboutsummaryrefslogtreecommitdiff
path: root/run2.cmd
diff options
context:
space:
mode:
authorMridul Muralidharan <mridul@gmail.com>2013-05-11 11:12:22 +0530
committerMridul Muralidharan <mridul@gmail.com>2013-05-11 11:12:22 +0530
commitee37612bc95e8486fa328908005293585912db71 (patch)
tree8a9df46b29cd5d808f93a24eebdd09223e7e2e70 /run2.cmd
parentb05c9d22d70333924b988b2dfa359ce3e11f7c9d (diff)
downloadspark-ee37612bc95e8486fa328908005293585912db71.tar.gz
spark-ee37612bc95e8486fa328908005293585912db71.tar.bz2
spark-ee37612bc95e8486fa328908005293585912db71.zip
1) Add support for HADOOP_CONF_DIR (and/or YARN_CONF_DIR - use either) : which is used to specify the client side configuration directory : which needs to be part of the CLASSPATH.
2) Move from var+=".." to var="$var.." : the former does not work on older bash shells unfortunately.
Diffstat (limited to 'run2.cmd')
-rw-r--r--run2.cmd13
1 files changed, 13 insertions, 0 deletions
diff --git a/run2.cmd b/run2.cmd
index d2d4807971..c6f43dde5b 100644
--- a/run2.cmd
+++ b/run2.cmd
@@ -63,6 +63,19 @@ set CLASSPATH=%CLASSPATH%;%FWDIR%repl\lib\*
set CLASSPATH=%CLASSPATH%;%FWDIR%python\lib\*
set CLASSPATH=%CLASSPATH%;%BAGEL_DIR%\target\scala-%SCALA_VERSION%\classes
+rem Add hadoop conf dir - else FileSystem.*, etc fail
+rem Note, this assumes that there is either a HADOOP_CONF_DIR or YARN_CONF_DIR which hosts
+rem the configurtion files.
+if "x%HADOOP_CONF_DIR%"=="x" goto no_hadoop_conf_dir
+ set CLASSPATH=%CLASSPATH%;%HADOOP_CONF_DIR%
+:no_hadoop_conf_dir
+
+if "x%YARN_CONF_DIR%"=="x" goto no_yarn_conf_dir
+ set CLASSPATH=%CLASSPATH%;%YARN_CONF_DIR%
+:no_yarn_conf_dir
+
+
+
rem Figure out the JAR file that our examples were packaged into.
rem First search in the build path from SBT:
for %%d in ("examples/target/scala-%SCALA_VERSION%/spark-examples*.jar") do (