-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathprepare_env.sh
executable file
·65 lines (44 loc) · 1.42 KB
/
prepare_env.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
57
58
59
60
61
62
#ubuntu 16.04
#Aliyun ECS clusters
#Or Amazon EC2 clusters
#A 16 node cluster with password-free ssh access
# variables for configure
MASTER_NAME=$HOSTNAME
HADOOP_PORT_NUMBER=9000
DOWNLOAD_HOST=http://hercules.cse.ohio-state.edu
###################################################
cur_dir=$(cd "$(dirname "$0")"; pwd)
echo ${cur_dir}
bashfile=~/.bashrc
#bashfile="a.txt"
cur_dir1=$(cd "$(dirname "$0")"; pwd)
#modify the bash file
echo -e '\n'>>${bashfile}
echo export JAVA_HOME=${cur_dir1}/jdk1.8.0_161 >>${bashfile}
echo export HADOOP_HOME=${cur_dir1}/hadoop-2.6.5 >>${bashfile}
echo export SOCIALITE_PREFIX=${cur_dir1} >>${bashfile}
echo export SPARK_HOME=${cur_dir1}/BigDatalog >>${bashfile}
echo export MYRIA_HOME=${cur_dir1}/myria >>${bashfile}
echo export MPI_HOME=${cur_dir1}/openmpi >>${bashfile}
echo 'export PATH=$JAVA_HOME/bin:$MPI_HOME/bin:$PATH' >>${bashfile}
echo 'export CLASSPATH=.$JAVA_HOME/lib:$JRE_HOME/lib'>>${bashfile}
echo 'export LD_LIBRARY_PATH=$MPI_HOME/lib:/usr/local/lib:/usr/lib'>>${bashfile}
echo 'export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8'>>${bathfile}
source ${bashfile}
#install java
tar xvzf jdk-8u161-linux-x64.tar.gz
# download openmpi
./install_mpi.sh
#install hadoop
tar xvzf hadoop-2.6.5.tar.gz
#compiling PowerLog
ant compile
#compiling socialite
cd socialite
ant compile
cd ..
#downloading Bigdatalog
./prepare_BigDatalog.sh
#downloading Myria
./prepare_Myria.sh
#downloading PowerGraph