~lijie-ren/appscale/bulkloader-on-appscale

« back to all changes in this revision

Viewing changes to debian/appscale_install_functions.sh

  • Committer: Chris Bunch
  • Author(s): NOMURA Yoshihide
  • Date: 2010-08-12 17:16:00 UTC
  • mfrom: (539.1.6 appscale)
  • Revision ID: cgb@cs.ucsb.edu-20100812171600-2py147dtev910mve
Changed taskqueue to implement BulkAdd method to make MapReduce API working.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
#export HOME=\$APPSCALE_HOME
47
47
#export JAVA_HOME=/usr/lib/jvm/java-6-sun
48
48
#EOF
49
 
    mkdir -pv ${DESTDIR}/etc/profile.d
50
49
    DESTFILE=${DESTDIR}/etc/profile.d/appscale.sh
 
50
    mkdir -pv $(dirname $DESTFILE)
51
51
    echo "Generating $DESTFILE"
52
52
    cat <<EOF | tee $DESTFILE || exit 1
53
53
export APPSCALE_HOME=${APPSCALE_HOME_RUNTIME}
66
66
export EC2_CERT=\${APPSCALE_HOME}/.appscale/certs/mycert.pem
67
67
EOF
68
68
# enable to load AppServer and AppDB modules. It must be before the python-support.
69
 
    mkdir -pv ${DESTDIR}/usr/lib/python2.6/dist-packages
70
69
    DESTFILE=${DESTDIR}/usr/lib/python2.6/dist-packages/appscale_appserver.pth
 
70
    mkdir -pv $(dirname $DESTFILE)
71
71
    echo "Generating $DESTFILE"
72
72
    cat <<EOF | tee $DESTFILE || exit 1
73
73
${APPSCALE_HOME_RUNTIME}/AppDB
74
74
${APPSCALE_HOME_RUNTIME}/AppServer
75
75
EOF
76
76
# enable to load site-packages of Python
77
 
    mkdir -pv ${DESTDIR}/usr/local/lib/python2.6/dist-packages
78
77
    DESTFILE=${DESTDIR}/usr/local/lib/python2.6/dist-packages/site_packages.pth
 
78
    mkdir -pv $(dirname $DESTFILE)
79
79
    echo "Generating $DESTFILE"
80
80
    cat <<EOF | tee $DESTFILE || exit 1
81
81
/usr/lib/python2.6/site-packages
325
325
 
326
326
    rm -rv ${APPSCALE_HOME}/AppDB/hypertable/src
327
327
 
328
 
    mkdir -pv ${DESTDIR}/etc/ld.so.conf.d
329
328
    DESTFILE=${DESTDIR}/etc/ld.so.conf.d/hypertable.conf
 
329
    mkdir -pv $(dirname $DESTFILE)
330
330
    echo "Generating $DESTFILE"
331
331
    echo "${APPSCALE_HOME_RUNTIME}/AppDB/hypertable/${HT_VER}/lib" | tee $DESTFILE || exit 1
332
332
#ldconfig
333
333
 
334
334
# enable to load hypertable client of python
335
 
    mkdir -pv ${DESTDIR}/usr/local/lib/python2.6/dist-packages
336
335
    DESTFILE=${DESTDIR}/usr/local/lib/python2.6/dist-packages/hypertable_client.pth
 
336
    mkdir -pv $(dirname $DESTFILE)
337
337
    echo "Generating $DESTFILE"
338
338
    cat <<EOF | tee $DESTFILE || exit 1
339
339
${APPSCALE_HOME_RUNTIME}/AppDB/hypertable/${HT_VER}/lib/py
370
370
#    echo "/opt/hypertable/${HT_VER}/lib" > ${DESTDIR}/etc/ld.so.conf.d/hypertable.conf
371
371
 
372
372
# enable to load hypertable client of python
373
 
    mkdir -pv ${DESTDIR}/usr/local/lib/python2.6/dist-packages
374
373
    DESTFILE=${DESTDIR}/usr/local/lib/python2.6/dist-packages/hypertable_client.pth
 
374
    mkdir -pv $(dirname $DESTFILE)
375
375
    echo "Generating $DESTFILE"
376
376
    cat <<EOF | tee $DESTFILE || exit 1
377
377
/opt/hypertable/${HT_VER}/lib/py
554
554
        fi
555
555
        popd
556
556
 
557
 
        mkdir -p ${DESTDIR}/etc/ld.so.conf.d
558
557
        DESTFILE=${DESTDIR}/etc/ld.so.conf.d/hadoop.conf
 
558
        mkdir -pv $(dirname $DESTFILE)
559
559
        echo "Generating $DESTFILE"
560
560
        cat <<EOF | tee $DESTFILE || exit 1
561
561
${APPSCALE_HOME_RUNTIME}/AppDB/hadoop-${HADOOP_VER}/c++/install/lib
578
578
        ln -sfv libhadoop.so.1.0.0 libhadoop.so.1
579
579
        popd
580
580
 
581
 
        mkdir -p ${DESTDIR}/etc/ld.so.conf.d
582
581
        DESTFILE=${DESTDIR}/etc/ld.so.conf.d/hadoop.conf
 
582
        mkdir -pv $(dirname $DESTFILE)
583
583
        echo "Generating $DESTFILE"
584
584
        cat <<EOF | tee $DESTFILE || exit 1
585
585
${APPSCALE_HOME_RUNTIME}/AppDB/hadoop-${HADOOP_VER}/c++/${HADOOP_CLIB}/lib
868
868
    python setup.py install --prefix=${DESTDIR}/usr || exit 1
869
869
    popd
870
870
    rm -rfv pyodbc-2.1.6
871
 
    mkdir -pv ${DESTDIR}/etc/profile.d/
872
871
    DESTFILE=${DESTDIR}/etc/profile.d/timesten.sh
 
872
    mkdir -pv $(dirname $DESTFILE)
873
873
    echo "Generating $DESTFILE"
874
874
    cat <<EOF | tee $DESTFILE || exit 1
875
875
. /etc/profile.d/appscale.sh
908
908
    wget http://appscale.cs.ucsb.edu/appscale_files/pigtutorial.tar.gz || exit 1
909
909
    tar zxvf pigtutorial.tar.gz || exit 1
910
910
    DESTFILE=${DESTDIR}/etc/profile.d/pig.sh
 
911
    mkdir -pv $(dirname $DESTFILE)
911
912
    echo "Generating $DESTFILE"
912
913
    cat <<EOF | tee $DESTFILE || exit 1
913
914
. /etc/profile.d/appscale.sh
1179
1180
    mkdir -pv ${DESTDIR}/var/lib/zookeeper
1180
1181
    mkdir -pv ${DESTDIR}/etc/zookeeper/conf
1181
1182
# enable to load python-zookeeper
1182
 
    mkdir -pv ${DESTDIR}/usr/local/lib/python2.6/dist-packages
1183
1183
    DESTFILE=${DESTDIR}/usr/local/lib/python2.6/dist-packages/pyshared2.6.pth
 
1184
    mkdir -pv $(dirname $DESTFILE)
1184
1185
    echo "Generating $DESTFILE"
1185
1186
    cat <<EOF | tee $DESTFILE || exit 1
1186
1187
/usr/lib/pyshared/python2.6
1256
1257
    make install DESTDIR=$DESTDIR || exit 1
1257
1258
    popd
1258
1259
    rm -rfv mpich2-1.2.1p1
1259
 
    mkdir -pv ${DESTDIR}/etc/profile.d
1260
1260
    DESTFILE=${DESTDIR}/etc/profile.d/mpi.sh
 
1261
    mkdir -pv $(dirname $DESTFILE)
1261
1262
    echo "Generating $DESTFILE"
1262
1263
    cat <<EOF | tee $DESTFILE || exit 1
1263
1264
export PATH=/usr/local/mpich2/bin:\$PATH
1264
1265
EOF
1265
 
    mkdir -pv ${DESTDIR}/etc/ld.so.conf.d
1266
1266
    DESTFILE=${DESTDIR}/etc/ld.so.conf.d/mpi.conf
 
1267
    mkdir -pv $(dirname $DESTFILE)
1267
1268
    echo "Generating $DESTFILE"
1268
1269
    cat <<EOF | tee $DESTFILE || exit 1
1269
1270
/usr/local/mpich2/lib