зеркало из https://github.com/microsoft/spark.git
Consistently invoke bash with /usr/bin/env bash in scripts to make code more portable (JIRA Ticket SPARK-817)
This commit is contained in:
Родитель
cad48edb70
Коммит
88a0823c58
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
|
|
|
@ -13,7 +13,7 @@ title: Tutorial - Running a Simple Spark Application
|
|||
|
||||
3. Edit the ~/SparkTest/sbt/sbt file to look like this:
|
||||
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
java -Xmx800M -XX:MaxPermSize=150m -jar $(dirname $0)/sbt-launch-*.jar "$@"
|
||||
|
||||
4. To build a Spark application, you need Spark and its dependencies in a single Java archive (JAR) file. Create this JAR in Spark's main directory with sbt as:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# These variables are automatically filled in by the mesos-ec2 script.
|
||||
export MESOS_MASTERS="{{master_list}}"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# These variables are automatically filled in by the mesos-ec2 script.
|
||||
export MESOS_MASTERS="{{master_list}}"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
|
|
2
run
2
run
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
|
|
2
sbt/sbt
2
sbt/sbt
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash --posix
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
|
@ -25,6 +25,9 @@
|
|||
# -c <cores> Set the number of cores for REPL to use
|
||||
#
|
||||
|
||||
# Enter posix mode for bash
|
||||
set -o posix
|
||||
|
||||
FWDIR="`dirname $0`"
|
||||
|
||||
for o in "$@"; do
|
||||
|
|
Загрузка…
Ссылка в новой задаче