Fix passing hadoop version

Change-Id: Ie89cf3a1a05874bf2377682841c8002361119e6a
Closes-bug: #1297817
This commit is contained in:
iberezovskiy 2014-03-26 18:20:48 +04:00
parent 8020b1b4fb
commit 286bf9aec9
2 changed files with 1 additions and 3 deletions

View File

@ -152,8 +152,6 @@ fi
echo "Applying firstboot script"
sed -i -e "s,DIB_HADOOP_VERSION=,DIB_HADOOP_VERSION=$DIB_HADOOP_VERSION," $(dirname $0)/firstboot
RC_SCRIPT_DIR=""
if [ "$distro" == "Ubuntu" ]; then
# File '/etc/rc.local' may not exist

View File

@ -68,7 +68,7 @@ function firstboot_hadoop_v1()
chown hadoop:hadoop /var/run/hadoop
}
DIB_HADOOP_VERSION=
DIB_HADOOP_VERSION=$(hadoop version | head -1 | awk '{print $2}')
firstboot_common