-
Notifications
You must be signed in to change notification settings - Fork 1
/
install_local.sh
executable file
·56 lines (42 loc) · 1.92 KB
/
install_local.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
source `dirname "$0"`/conf.sh
CURRENT_DIR=`dirname $(readlink -f $0)`
sudo sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/CentOS-*.repo
sudo sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/CentOS-*.repo
sudo sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/CentOS-*.repo
sudo yum update -y
sudo yum install -y tmux
sudo yum install -y git pssh autoconf
# required by impala-tpcds-kit
sudo yum install -y git gcc make flex bison byacc curl unzip patch
if [ ! -f "/tmp/$ASYNC_PROFILER_TARBALL" ]; then
wget $ASYNC_PROFILER_DOWNLOAD_PATH -P /tmp/
sudo tar zxvf /tmp/$ASYNC_PROFILER_TARBALL -C /opt/
fi
if [ ! -f "/tmp/async-profiler-1.8.5-linux-x64.tar.gz" ]; then
wget https://github.com/jvm-profiling-tools/async-profiler/releases/download/v1.8.5/async-profiler-1.8.5-linux-x64.tar.gz -P /tmp/
sudo tar zxvf /tmp/async-profiler-1.8.5-linux-x64.tar.gz -C /opt/
fi
if [ ! -f "apache-maven-${MVN_VERSION}-bin.tar.gz" ]; then
wget https://archive.apache.org/dist/maven/maven-3/${MVN_VERSION}/binaries/apache-maven-${MVN_VERSION}-bin.tar.gz
tar zxvf apache-maven-${MVN_VERSION}-bin.tar.gz -C ~/
fi
sudo yum install -y python3 cmake3 snappy-devel
sudo alternatives --install /usr/local/bin/cmake cmake /usr/bin/cmake 10 \
--slave /usr/local/bin/ctest ctest /usr/bin/ctest \
--slave /usr/local/bin/cpack cpack /usr/bin/cpack \
--slave /usr/local/bin/ccmake ccmake /usr/bin/ccmake \
--family cmake
sudo alternatives --install /usr/local/bin/cmake cmake /usr/bin/cmake3 20 \
--slave /usr/local/bin/ctest ctest /usr/bin/ctest3 \
--slave /usr/local/bin/cpack cpack /usr/bin/cpack3 \
--slave /usr/local/bin/ccmake ccmake /usr/bin/ccmake3 \
--family cmake
sudo yum install -y chrony
sudo systemctl enable chronyd
sudo systemctl start chronyd
sudo chronyc tracking
sudo pip3 install cm_client
$CURRENT_DIR/install_btrace.sh
$CURRENT_DIR/install_jemalloc.sh
sudo $CURRENT_DIR/config_sys.sh