Skip to content
Browse files

Remove the executor shell script, and instead call executor.py directly.

  • Loading branch information...
1 parent 3c7c430 commit e93c44de0a3f8fd95f0a1c635127225d2d78a2a7 @Ssmithcr Ssmithcr committed May 6, 2012
Showing with 2 additions and 10 deletions.
  1. +0 −8 dpark/executor
  2. +1 −1 dpark/executor.py
  3. +1 −1 dpark/schedule.py
View
8 dpark/executor
@@ -1,8 +0,0 @@
-#!/bin/sh
-
-if [ "x$MESOS_HOME" == "x" ]; then
- MESOS_HOME=/Users/davies/work/mesos/
-fi
-
-export PYTHONPATH=$MESOS_HOME/lib/python
-exec python "$(dirname $0)/executor.py" $@
View
2 dpark/executor.py
@@ -1,4 +1,4 @@
-#/usr/bin/env python
+#!/usr/bin/env python
import logging
import os, sys, time
import os.path
View
2 dpark/schedule.py
@@ -470,7 +470,7 @@ def getExecutorInfo(self):
info.executor_id.value = sys.argv[0]
else:
dir = os.path.dirname(__file__)
- info.uri = os.path.abspath(os.path.join(dir, 'executor'))
+ info.uri = os.path.abspath(os.path.join(dir, 'executor.py'))
info.executor_id.value = "default"
mem = info.resources.add()

0 comments on commit e93c44d

Please sign in to comment.
Something went wrong with that request. Please try again.