BIGTOP-1100. the new Tomcat deployment style would benefit from a few usability tweaks
authorRoman Shaposhnik <rvs@cloudera.com>
Thu, 26 Sep 2013 17:14:33 +0000 (10:14 -0700)
committerRoman Shaposhnik <rvs@cloudera.com>
Thu, 26 Sep 2013 17:16:44 +0000 (10:16 -0700)
bigtop-packages/src/common/hadoop/hadoop-httpfs.svc
bigtop-packages/src/common/oozie/oozie.init
bigtop-packages/src/common/solr/solr-server.init.debian
bigtop-packages/src/common/sqoop/sqoop-server.sh
bigtop-packages/src/rpm/solr/SOURCES/solr-server.init

index 73a41e6..73507af 100644 (file)
@@ -32,7 +32,7 @@ tomcat_deployment() {
   DEPLOYMENT_SOURCE=/etc/hadoop-httpfs/conf/tomcat-deployment
   DEPLOYMENT_TARGET=/var/lib/hadoop-httpfs/tomcat-deployment
 
-  rm -r ${DEPLOYMENT_TARGET}
+  rm -rf ${DEPLOYMENT_TARGET}
   cp -r ${DEPLOYMENT_SOURCE} ${DEPLOYMENT_TARGET}
   ln -s /usr/lib/hadoop-httpfs/webapps ${DEPLOYMENT_TARGET}/
   chown -R ${SVC_USER}:${SVC_USER} ${DEPLOYMENT_TARGET}
index fd1bd78..321c4e6 100644 (file)
@@ -53,6 +53,7 @@ tomcat_deployment() {
 
   rm -rf ${DEPLOYMENT_TARGET}
   cp -r ${DEPLOYMENT_SOURCE} ${DEPLOYMENT_TARGET}
+  chown -R oozie:oozie ${DEPLOYMENT_TARGET}
 }
 
 start_oozie() {
index c673603..c8195f6 100644 (file)
@@ -68,9 +68,10 @@ tomcat_deployment() {
   DEPLOYMENT_SOURCE=/etc/solr/conf/tomcat-deployment
   DEPLOYMENT_TARGET=/var/lib/solr/tomcat-deployment
 
-  rm -r ${DEPLOYMENT_TARGET}
+  rm -rf ${DEPLOYMENT_TARGET}
   cp -r ${DEPLOYMENT_SOURCE} ${DEPLOYMENT_TARGET}
   ln -s ${SOLR_HOME}/server/webapps ${DEPLOYMENT_TARGET}/
+  chown -R ${SOLR_USER}:${SOLR_USER} ${DEPLOYMENT_TARGET}
 }
 
 start() {
index ec825b2..7124dc6 100644 (file)
@@ -23,6 +23,7 @@ tomcat_deployment() {
   cp -r ${DEPLOYMENT_SOURCE} ${DEPLOYMENT_TARGET}
   ln -s ${SQOOP_HOME}/webapps ${DEPLOYMENT_TARGET}/
   ln -s ${SQOOP_HOME}/bin ${DEPLOYMENT_TARGET}/
+  chown -R sqoop:sqoop ${DEPLOYMENT_TARGET}
 }
 
 # Autodetect JAVA_HOME if not defined
index 28b26c8..374cc03 100644 (file)
@@ -68,9 +68,10 @@ tomcat_deployment() {
   DEPLOYMENT_SOURCE=/etc/solr/conf/tomcat-deployment
   DEPLOYMENT_TARGET=/var/lib/solr/tomcat-deployment
 
-  rm -r ${DEPLOYMENT_TARGET}
+  rm -rf ${DEPLOYMENT_TARGET}
   cp -r ${DEPLOYMENT_SOURCE} ${DEPLOYMENT_TARGET}
   ln -s ${SOLR_HOME}/server/webapps ${DEPLOYMENT_TARGET}/
+  chown -R ${SOLR_USER}:${SOLR_USER} ${DEPLOYMENT_TARGET}
 }
 
 start() {