This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

suppress output of pushd and popd

When calling pushd or popd, they print the directory stack to stdout.
This is just noise we can suppress.
  • Loading branch information...
nchammas committed Jan 4, 2015
1 parent 67bbfb3 commit 54437edfb2dc08c854aa253ec8af5ef8dd40cca8
Showing with 28 additions and 26 deletions.
  1. +3 −2 ephemeral-hdfs/init.sh
  2. +2 −2 ephemeral-hdfs/setup.sh
  3. +2 −2 mapreduce/init.sh
  4. +3 −2 persistent-hdfs/init.sh
  5. +2 −2 persistent-hdfs/setup.sh
  6. +2 −2 scala/init.sh
  7. +2 −2 setup-slave.sh
  8. +2 −2 setup.sh
  9. +4 −4 shark/init.sh
  10. +4 −4 spark/init.sh
  11. +2 −2 tachyon/init.sh
View
@@ -1,6 +1,6 @@
#!/bin/bash
-pushd /root
+pushd /root > /dev/null
if [ -d "ephemeral-hdfs" ]; then
echo "Ephemeral HDFS seems to be installed. Exiting."
@@ -34,4 +34,5 @@ case "$HADOOP_MAJOR_VERSION" in
esac
cp /root/hadoop-native/* ephemeral-hdfs/lib/native/
/root/spark-ec2/copy-dir /root/ephemeral-hdfs
-popd
+
+popd > /dev/null
View
@@ -6,7 +6,7 @@ EPHEMERAL_HDFS=/root/ephemeral-hdfs
HDFS_URL="hdfs://$PUBLIC_DNS:9000"
echo "export HDFS_URL=$HDFS_URL" >> ~/.bash_profile
-pushd /root/spark-ec2/ephemeral-hdfs
+pushd /root/spark-ec2/ephemeral-hdfs > /dev/null
source ./setup-slave.sh
for node in $SLAVES $OTHER_MASTERS; do
@@ -31,4 +31,4 @@ echo "Starting ephemeral HDFS..."
$EPHEMERAL_HDFS/sbin/start-dfs.sh
$EPHEMERAL_HDFS/bin/start-dfs.sh
-popd
+popd > /dev/null
View
@@ -1,6 +1,6 @@
#!/bin/bash
-pushd /root
+pushd /root > /dev/null
case "$HADOOP_MAJOR_VERSION" in
1)
echo "Nothing to initialize for MapReduce in Hadoop 1"
@@ -17,4 +17,4 @@ case "$HADOOP_MAJOR_VERSION" in
return -1
esac
/root/spark-ec2/copy-dir /root/mapreduce
-popd
+popd > /dev/null
View
@@ -1,6 +1,6 @@
#!/bin/bash
-pushd /root
+pushd /root > /dev/null
if [ -d "persistent-hdfs" ]; then
echo "Persistent HDFS seems to be installed. Exiting."
@@ -33,4 +33,5 @@ case "$HADOOP_MAJOR_VERSION" in
esac
cp /root/hadoop-native/* /root/persistent-hdfs/lib/native/
/root/spark-ec2/copy-dir /root/persistent-hdfs
-popd
+
+popd > /dev/null
View
@@ -2,7 +2,7 @@
PERSISTENT_HDFS=/root/persistent-hdfs
-pushd /root/spark-ec2/persistent-hdfs
+pushd /root/spark-ec2/persistent-hdfs > /dev/null
source ./setup-slave.sh
for node in $SLAVES $OTHER_MASTERS; do
@@ -19,4 +19,4 @@ fi
echo "Persistent HDFS installed, won't start by default..."
-popd
+popd > /dev/null
View
@@ -1,6 +1,6 @@
#!/bin/bash
-pushd /root
+pushd /root > /dev/null
if [ -d "scala" ]; then
echo "Scala seems to be installed. Exiting."
@@ -19,4 +19,4 @@ tar xvzf scala-*.tgz > /tmp/spark-ec2_scala.log
rm scala-*.tgz
mv `ls -d scala-* | grep -v ec2` scala
-popd
+popd > /dev/null
View
@@ -8,7 +8,7 @@ if [[ -e /sys/kernel/mm/transparent_hugepage/enabled ]]; then
fi
# Make sure we are in the spark-ec2 directory
-pushd /root/spark-ec2
+pushd /root/spark-ec2 > /dev/null
source ec2-variables.sh
@@ -115,4 +115,4 @@ echo '#!/bin/bash' > /usr/bin/realpath
echo 'readlink -e "$@"' >> /usr/bin/realpath
chmod a+x /usr/bin/realpath
-popd
+popd > /dev/null
View
@@ -3,7 +3,7 @@
sudo yum install -y pssh
# Make sure we are in the spark-ec2 directory
-pushd /root/spark-ec2
+pushd /root/spark-ec2 > /dev/null
# Load the environment variables specific to this AMI
source /root/.bash_profile
@@ -93,4 +93,4 @@ for module in $MODULES; do
cd /root/spark-ec2 # guard against setup.sh changing the cwd
done
-popd
+popd > /dev/null
View
@@ -1,10 +1,10 @@
#!/bin/bash
-pushd /root
+pushd /root > /dev/null
if [ -d "shark" ]; then
echo "Shark seems to be installed. Exiting."
- popd
+ popd > /dev/null
return
fi
@@ -55,7 +55,7 @@ else
;;
*)
echo "ERROR: Unknown Shark version"
- popd
+ popd > /dev/null
return
esac
@@ -74,4 +74,4 @@ else
fi
fi
-popd
+popd > /dev/null
View
@@ -1,6 +1,6 @@
#!/bin/bash
-pushd /root
+pushd /root > /dev/null
if [ -d "spark" ]; then
echo "Spark seems to be installed. Exiting."
@@ -11,7 +11,7 @@ fi
if [[ "$SPARK_VERSION" == *\|* ]]
then
mkdir spark
- pushd spark
+ pushd spark > /dev/null
git init
repo=`python -c "print '$SPARK_VERSION'.split('|')[0]"`
git_hash=`python -c "print '$SPARK_VERSION'.split('|')[1]"`
@@ -20,7 +20,7 @@ then
git checkout $git_hash
sbt/sbt clean assembly
sbt/sbt publish-local
- popd
+ popd > /dev/null
# Pre-packaged spark version:
else
@@ -120,4 +120,4 @@ else
mv `ls -d spark-* | grep -v ec2` spark
fi
-popd
+popd > /dev/null
View
@@ -1,6 +1,6 @@
#!/bin/bash
-pushd /root
+pushd /root > /dev/null
if [ -d "tachyon" ]; then
echo "Tachyon seems to be installed. Exiting."
@@ -37,4 +37,4 @@ else
mv `ls -d tachyon-*` tachyon
fi
-popd
+popd > /dev/null

0 comments on commit 54437ed

Please sign in to comment.