提交 20fcb24e 编写于 作者: R Robert Metzger

[yarn] deploy new yarn.tgz with travis, fix file permission in binary

上级 d92b111f
......@@ -343,12 +343,10 @@ public class Client {
@Override
public void run() {
try {
LOG.info("Killing the YARN instance.");
LOG.info("Killing the Stratosphere-YARN application.");
yarnClient.killApplication(appId);
} catch (YarnException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} catch (Exception e) {
LOG.warn("Exception while killing the YARN application", e);
}
LOG.info("YARN Client is shutting down");
yarnClient.stop();
......
......@@ -101,7 +101,7 @@
<file>
<source>src/main/stratosphere-bin/bin/stratosphere</source>
<outputDirectory>bin/</outputDirectory>
<fileMode>0644</fileMode>
<fileMode>0755</fileMode>
</file>
<file>
<source>src/main/stratosphere-bin/bin/config.sh</source>
......
......@@ -6,7 +6,7 @@
# 1. Deploy to sonatype (old hadoop)
# 2. Nothing
# 3. Deploy to s3 (old hadoop)
# 4. deploy to sonatype (yarn hadoop)
# 4. deploy to sonatype (yarn hadoop) (this build will also generate specific poms for yarn hadoop)
# 5. Nothing
# 6. deploy to s3 (yarn hadoop)
......@@ -79,30 +79,31 @@ if [[ $TRAVIS_PULL_REQUEST == "false" ]] ; then
# Please be sure not to use Build 1 as it will always be the yarn build.
#
UBER_JAR=""
YARN_ARCHIVE=""
if [[ $TRAVIS_JOB_NUMBER == *6 ]] ; then
#generate yarn poms & build for yarn.
./tools/generate_specific_pom.sh $CURRENT_STRATOSPHERE_VERSION $CURRENT_STRATOSPHERE_VERSION_YARN pom.xml
mvn -B -DskipTests clean install
# it is not required to generate poms for this build.
#./tools/generate_specific_pom.sh $CURRENT_STRATOSPHERE_VERSION $CURRENT_STRATOSPHERE_VERSION_YARN pom.xml
#mvn -B -DskipTests clean install
CURRENT_STRATOSPHERE_VERSION=$CURRENT_STRATOSPHERE_VERSION_YARN
UBER_JAR="stratosphere-dist/target/*yarn*.jar"
YARN_ARCHIVE="stratosphere-dist/target/*yarn.tar.gz"
fi
if [[ $TRAVIS_JOB_NUMBER == *3 ]] || [[ $TRAVIS_JOB_NUMBER == *6 ]] ; then
sudo apt-get install sshpass
cd stratosphere-dist
mvn -B -DskipTests -Pdebian-package package
cd ..
echo "Uploading build to dopa.dima.tu-berlin.de. Job Number: $TRAVIS_JOB_NUMBER"
# cd stratosphere-dist
# mvn -B -DskipTests -Pdebian-package package
# cd ..
echo "Uploading build to amazon s3. Job Number: $TRAVIS_JOB_NUMBER"
mkdir stratosphere
cp -r stratosphere-dist/target/stratosphere-dist-$CURRENT_STRATOSPHERE_VERSION-bin/stratosphere-$CURRENT_STRATOSPHERE_VERSION/* stratosphere/
tar -czf stratosphere-$CURRENT_STRATOSPHERE_VERSION.tgz stratosphere
# upload the two in parallel
if [[ $TRAVIS_JOB_NUMBER == *6 ]] ; then
travis-artifacts upload --path $UBER_JAR --target-path /
# move to current dir
mv $YARN_ARCHIVE .
travis-artifacts upload --path *yarn.tar.gz --target-path /
fi
travis-artifacts upload --path stratosphere-$CURRENT_STRATOSPHERE_VERSION.tgz --target-path /
#sshpass -p "$DOPA_PASS" scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -r stratosphere-$CURRENT_STRATOSPHERE_VERSION.tgz $UBER_JAR $DOPA_USER@dopa.dima.tu-berlin.de:bin/
fi
fi # pull request check
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册