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
  rm -r ${DEPLOYMENT_TARGET}

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

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

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

    
   
39
  chmod -R 755 ${DEPLOYMENT_TARGET}

    
   
40
}

    
   
41
__EOT__

    
   
42

   

    
   
43
}

    
   
44

   
28
generate_start() {
45
generate_start() {
29

    
   
46

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

    
   
52

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

    
   
61

   

    
   
62
  tomcat_deployment

    
   
63

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

    
   
65

   
47
  for second in {5..0}
66
  for second in {5..0}
48
  do
67
  do
49
    checkstatusofproc
68
    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 08ddb52 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 3e27c3b 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.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/oozie/oozie.postinst
Revision 23decab New Change
 
bigtop-packages/src/deb/oozie/rules
Revision bb1e6c0 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.default: Loading...
  11. bigtop-packages/src/common/sqoop/sqoop-server.sh: Loading...
  12. bigtop-packages/src/deb/hadoop/hadoop-httpfs.install: Loading...
  13. bigtop-packages/src/deb/oozie/oozie.postinst: Loading...
  14. bigtop-packages/src/deb/oozie/rules: Loading...
  15. bigtop-packages/src/deb/sqoop/sqoop.install: Loading...
  16. bigtop-packages/src/rpm/hadoop/SPECS/hadoop.spec: Loading...
  17. bigtop-packages/src/rpm/oozie/SPECS/oozie.spec: Loading...
  18. bigtop-packages/src/rpm/solr/SOURCES/solr-server.init: Loading...
  19. bigtop-packages/src/rpm/sqoop/SPECS/sqoop.spec: Loading...