Review Board 1.7.22


bigtop-packages/src/common/hadoop/hadoop-httpfs.svc
Revision de4d6d2 New Change
[20] 22 lines
[+20]
23
PIDFILE="/var/run/$DAEMON/hadoop-$SVC_USER-$HADOOP_NAME.pid"
23
PIDFILE="/var/run/$DAEMON/hadoop-$SVC_USER-$HADOOP_NAME.pid"
24

    
   
24

   
25
CHKCONFIG=${CHKCONFIG:-"2345 90 10"}
25
CHKCONFIG=${CHKCONFIG:-"2345 90 10"}
26
CHKCONFIG="${CHKCONFIG%% *} 90 10"
26
CHKCONFIG="${CHKCONFIG%% *} 90 10"
27

    
   
27

   

    
   
28
generate_functions() {

    
   
29

   

    
   
30
cat <<'__EOT__'

    
   
31
tomcat_deployment() {

    
   
32
  DEPLOYMENT_SOURCE=/etc/hadoop-httpfs/conf/tomcat-deployment

    
   
33
  DEPLOYMENT_TARGET=/var/lib/hadoop-httpfs/tomcat-deployment

    
   
34

   

    
   
35
  if [ -e ${DEPLOYMENT_TARGET} ] ; then

    
   
36
      rm -r ${DEPLOYMENT_TARGET}

    
   
37
  fi

    
   
38
  cp -r ${DEPLOYMENT_SOURCE} ${DEPLOYMENT_TARGET}

    
   
39
  ln -s /usr/lib/hadoop-httpfs/webapps ${DEPLOYMENT_TARGET}/

    
   
40
  chown -R ${SVC_USER}:${SVC_USER} ${DEPLOYMENT_TARGET}

    
   
41
  chmod -R 755 ${DEPLOYMENT_TARGET}

    
   
42
}

    
   
43
__EOT__

    
   
44

   

    
   
45
}

    
   
46

   
28
generate_start() {
47
generate_start() {
29

    
   
48

   
30
cat <<'__EOT__'
49
cat <<'__EOT__'
31
start() {
50
start() {
32
  [ -x $EXEC_PATH ] || exit $ERROR_PROGRAM_NOT_INSTALLED
51
  [ -x $EXEC_PATH ] || exit $ERROR_PROGRAM_NOT_INSTALLED
33
  [ -d $CONF_DIR ] || exit $ERROR_PROGRAM_NOT_CONFIGURED
52
  [ -d $CONF_DIR ] || exit $ERROR_PROGRAM_NOT_CONFIGURED
34
  log_success_msg "Starting ${DESC}: "
53
  log_success_msg "Starting ${DESC}: "
35

    
   
54

   
36
  export HTTPFS_USER="$SVC_USER"
55
  export HTTPFS_USER="$SVC_USER"
37
  export HTTPFS_CONFIG="$CONF_DIR"
56
  export HTTPFS_CONFIG="$CONF_DIR"
38
  export HTTPFS_LOG=${HTTPFS_LOG:-"/var/log/hadoop-httpfs/"}
57
  export HTTPFS_LOG=${HTTPFS_LOG:-"/var/log/hadoop-httpfs/"}
39
  export HTTPFS_TEMP="$(dirname $PIDFILE)"
58
  export HTTPFS_TEMP="$(dirname $PIDFILE)"
40
  export HTTPFS_SLEEP_TIME="$SLEEP_TIME"
59
  export HTTPFS_SLEEP_TIME="$SLEEP_TIME"
41
  export CATALINA_BASE=${CATALINA_BASE:-"/usr/lib/hadoop-httpfs"}
60
  export CATALINA_BASE=${CATALINA_BASE:-"/var/lib/hadoop-httpfs/tomcat-deployment"}
42
  export CATALINA_PID="$PIDFILE"
61
  export CATALINA_PID="$PIDFILE"
43
  export CATALINA_TMPDIR="$HTTPFS_TEMP"
62
  export CATALINA_TMPDIR="$HTTPFS_TEMP"
44

    
   
63

   

    
   
64
  tomcat_deployment

    
   
65

   
45
  su -s /bin/bash -c "${EXEC_PATH} start $DAEMON_FLAGS" $HTTPFS_USER
66
  su -s /bin/bash -c "${EXEC_PATH} start $DAEMON_FLAGS" $HTTPFS_USER
46

    
   
67

   
47
  for second in {5..0}
68
  for second in {5..0}
48
  do
69
  do
49
    checkstatusofproc
70
    checkstatusofproc
[+20] [20] 33 lines
bigtop-packages/src/common/hadoop/httpfs.default
Revision e48e608 New Change
 
bigtop-packages/src/common/hadoop/install_hadoop.sh
Revision ed9cb5c New Change
 
bigtop-packages/src/common/oozie/install_oozie.sh
Revision c27dd64 New Change
 
bigtop-packages/src/common/oozie/oozie.init
Revision 4600841 New Change
 
bigtop-packages/src/common/oozie/oozie-env.sh
Revision dd051f7 New Change
 
bigtop-packages/src/common/solr/install_solr.sh
Revision 4e09e40 New Change
 
bigtop-packages/src/common/solr/solr-server.init.debian
Revision 5b8b862 New Change
 
bigtop-packages/src/common/sqoop/install_sqoop.sh
Revision df4f489 New Change
 
bigtop-packages/src/common/sqoop/sqoop.sh
Revision afe1ac6 New Change
 
bigtop-packages/src/common/sqoop/sqoop.default
Revision cdec81c New Change
 
bigtop-packages/src/common/sqoop/sqoop-server.sh
Revision b1de301 New Change
 
bigtop-packages/src/deb/hadoop/hadoop-httpfs.install
Revision fe1a462 New Change
 
bigtop-packages/src/deb/sqoop/sqoop.install
Revision 0386c7a New Change
 
bigtop-packages/src/rpm/hadoop/SPECS/hadoop.spec
Revision acfc2fa New Change
 
bigtop-packages/src/rpm/oozie/SPECS/oozie.spec
Revision 4bbc212 New Change
 
bigtop-packages/src/rpm/solr/SOURCES/solr-server.init
Revision 6d1a035 New Change
 
bigtop-packages/src/rpm/sqoop/SPECS/sqoop.spec
Revision 5f4447b New Change
 
  1. bigtop-packages/src/common/hadoop/hadoop-httpfs.svc: Loading...
  2. bigtop-packages/src/common/hadoop/httpfs.default: Loading...
  3. bigtop-packages/src/common/hadoop/install_hadoop.sh: Loading...
  4. bigtop-packages/src/common/oozie/install_oozie.sh: Loading...
  5. bigtop-packages/src/common/oozie/oozie.init: Loading...
  6. bigtop-packages/src/common/oozie/oozie-env.sh: Loading...
  7. bigtop-packages/src/common/solr/install_solr.sh: Loading...
  8. bigtop-packages/src/common/solr/solr-server.init.debian: Loading...
  9. bigtop-packages/src/common/sqoop/install_sqoop.sh: Loading...
  10. bigtop-packages/src/common/sqoop/sqoop.sh: Loading...
  11. bigtop-packages/src/common/sqoop/sqoop.default: Loading...
  12. bigtop-packages/src/common/sqoop/sqoop-server.sh: Loading...
  13. bigtop-packages/src/deb/hadoop/hadoop-httpfs.install: Loading...
  14. bigtop-packages/src/deb/sqoop/sqoop.install: Loading...
  15. bigtop-packages/src/rpm/hadoop/SPECS/hadoop.spec: Loading...
  16. bigtop-packages/src/rpm/oozie/SPECS/oozie.spec: Loading...
  17. bigtop-packages/src/rpm/solr/SOURCES/solr-server.init: Loading...
  18. bigtop-packages/src/rpm/sqoop/SPECS/sqoop.spec: Loading...