aboutsummaryrefslogtreecommitdiff
path: root/bin/run-example.cmd
diff options
context:
space:
mode:
Diffstat (limited to 'bin/run-example.cmd')
-rw-r--r--bin/run-example.cmd7
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/run-example.cmd b/bin/run-example.cmd
index 64f6bc3728..f9b786e92b 100644
--- a/bin/run-example.cmd
+++ b/bin/run-example.cmd
@@ -17,7 +17,6 @@ rem See the License for the specific language governing permissions and
rem limitations under the License.
rem
-rem This is the entry point for running a Spark example. To avoid polluting
-rem the environment, it just launches a new cmd to do the real work.
-
-cmd /V /E /C "%~dp0run-example2.cmd" %*
+set SPARK_HOME=%~dp0..
+set _SPARK_CMD_USAGE=Usage: ./bin/run-example [options] example-class [example args]
+cmd /V /E /C "%~dp0spark-submit.cmd" run-example %*