13 lines
414 B
Bash
Executable File
13 lines
414 B
Bash
Executable File
#!/bin/bash
|
|
install-packages wget
|
|
if [ -z "$swift_url" ]; then
|
|
wget -O /usr/share/hadoop/lib/hadoop-swift.jar "http://savanna-files.mirantis.com/hadoop-swift/hadoop-swift-latest.jar"
|
|
else
|
|
wget -O /usr/share/hadoop/lib/hadoop-swift.jar $swift_url
|
|
fi
|
|
if [ $? -ne 0 ]; then
|
|
echo -e "Could not download Swift Hadoop FS implementation.\nAborting"
|
|
exit 1
|
|
fi
|
|
chmod 0644 /usr/share/hadoop/lib/hadoop-swift.jar
|