fs.StringVar(&s.kmPath,"km-path",s.kmPath,"Location of the km executable, may be a URI or an absolute file path.")
fs.StringVar(&s.kmPath,"km-path",s.kmPath,"Location of the km executable, may be a URI or an absolute file path; may be prefixed with 'file://' to specify the path to a pre-installed, agent-local km binary.")
}
// returns (downloadURI, basename(path))
...
...
@@ -390,11 +390,16 @@ func (s *SchedulerServer) prepareExecutorInfo(hks hyperkube.Interface) (*mesos.E
returnnil,fmt.Errorf("either run this scheduler via km or else --executor-path is required")
}else{
ifstrings.Index(s.kmPath,"://")>0{
// URI could point directly to executable, e.g. hdfs:///km
// or else indirectly, e.g. http://acmestorage/tarball.tgz
// so we assume that for this case the command will always "km"