ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sneet...@apache.org
Subject git commit: ARGUS-73: switched component install directory to a sym link
Date Sat, 20 Sep 2014 06:46:42 GMT
Repository: incubator-argus
Updated Branches:
  refs/heads/master 4eacc7a8d -> bb161f334


ARGUS-73: switched component install directory to a sym link


Project: http://git-wip-us.apache.org/repos/asf/incubator-argus/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-argus/commit/bb161f33
Tree: http://git-wip-us.apache.org/repos/asf/incubator-argus/tree/bb161f33
Diff: http://git-wip-us.apache.org/repos/asf/incubator-argus/diff/bb161f33

Branch: refs/heads/master
Commit: bb161f3347c5f52eedaf33f0abb010d18ed3f167
Parents: 4eacc7a
Author: sneethiraj <sneethir@apache.org>
Authored: Sat Sep 20 02:45:35 2014 -0400
Committer: sneethiraj <sneethir@apache.org>
Committed: Sat Sep 20 02:45:35 2014 -0400

----------------------------------------------------------------------
 hbase-agent/scripts/install.sh         | 8 ++++----
 hdfs-agent/conf/xasecure-hadoop-env.sh | 2 +-
 hdfs-agent/scripts/install.sh          | 6 +++---
 hive-agent/scripts/install.sh          | 8 ++++----
 4 files changed, 12 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/bb161f33/hbase-agent/scripts/install.sh
----------------------------------------------------------------------
diff --git a/hbase-agent/scripts/install.sh b/hbase-agent/scripts/install.sh
index 4fa2e94..03da7ac 100644
--- a/hbase-agent/scripts/install.sh
+++ b/hbase-agent/scripts/install.sh
@@ -30,12 +30,12 @@ updatePropertyToFile(){
 	echo "[I] File $3 Updated successfully : {'$1'}"
 }
 
-hbase_dir=/usr/lib/hbase
+hbase_dir=/usr/hdp/current/hbase
 hbase_lib_dir=${hbase_dir}/lib
 hbase_conf_dir=/etc/hbase/conf
 
-hdp_dir=/usr/lib/hadoop
-hdp_lib_dir=/usr/lib/hadoop/lib
+hdp_dir=/usr/hdp/current/hadoop
+hdp_lib_dir=${hdp_dir}/lib
 hdp_conf_dir=/etc/hadoop/conf
 
 export CONFIG_FILE_OWNER="hbase:hadoop"
@@ -291,7 +291,7 @@ do
 		cp ${fullpathorgfn} ${archivefn}
 		if [ $? -eq 0 ]
 		then
-			cp="${install_dir}/installer/lib/*:/usr/lib/hadoop/*:/usr/lib/hadoop/lib/*"
+			cp="${install_dir}/installer/lib/*:${hdp_dir}/*:${hdp_lib_dir}/*"
 			java -cp "${cp}" com.xasecure.utils.install.XmlConfigChanger -i ${archivefn} -o ${newfn}
-c ${f} ${PROP_ARGS}
 			if [ $? -eq 0 ]
 			then

http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/bb161f33/hdfs-agent/conf/xasecure-hadoop-env.sh
----------------------------------------------------------------------
diff --git a/hdfs-agent/conf/xasecure-hadoop-env.sh b/hdfs-agent/conf/xasecure-hadoop-env.sh
index 95e00c6..e711ccd 100644
--- a/hdfs-agent/conf/xasecure-hadoop-env.sh
+++ b/hdfs-agent/conf/xasecure-hadoop-env.sh
@@ -3,7 +3,7 @@
 echo "$0" | grep -q beeswax_server.sh > /dev/null 2>&1
 if [ $? -ne 0 ]
 then
-	XASECURE_AGENT_PATH="`ls -1 /usr/lib/hadoop/lib/hdfs-agent-*.jar | head -1`"
+	XASECURE_AGENT_PATH="`ls -1 /usr/hdp/current/hadoop/lib/hdfs-agent-*.jar | head -1`"
 	if [ -f "${XASECURE_AGENT_PATH}" ]
 	then
 	    if [ "${XASECURE_INIT}" != "0" ]

http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/bb161f33/hdfs-agent/scripts/install.sh
----------------------------------------------------------------------
diff --git a/hdfs-agent/scripts/install.sh b/hdfs-agent/scripts/install.sh
index 6d60a4f..230ecb5 100644
--- a/hdfs-agent/scripts/install.sh
+++ b/hdfs-agent/scripts/install.sh
@@ -29,8 +29,8 @@ updatePropertyToFile(){
 	echo "[I] File $3 Updated successfully : {'$1'}"
 }
 
-hdp_dir=/usr/lib/hadoop
-hdp_lib_dir=/usr/lib/hadoop/lib
+hdp_dir=/usr/hdp/current/hadoop
+hdp_lib_dir=${hdp_dir}/lib
 hdp_conf_dir=/etc/hadoop/conf
 
 if [ ! -w /etc/passwd ]
@@ -298,7 +298,7 @@ do
                 cp ${fullpathorgfn} ${archivefn}
                 if [ $? -eq 0 ]
                 then
-                	cp="${install_dir}/installer/lib/*:/usr/lib/hadoop/*:/usr/lib/hadoop/lib/*"
+                	cp="${install_dir}/installer/lib/*:${hdp_dir}/*:${hdp_lib_dir}/*"
                         java -cp "${cp}" com.xasecure.utils.install.XmlConfigChanger -i ${archivefn}
-o ${newfn} -c ${f} ${PROP_ARGS}
                         if [ $? -eq 0 ]
                         then

http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/bb161f33/hive-agent/scripts/install.sh
----------------------------------------------------------------------
diff --git a/hive-agent/scripts/install.sh b/hive-agent/scripts/install.sh
index e7da044..5bd876e 100644
--- a/hive-agent/scripts/install.sh
+++ b/hive-agent/scripts/install.sh
@@ -29,7 +29,7 @@ updatePropertyToFile(){
 	echo "[I] File $3 Updated successfully : {'$1'}"
 }
 
-hive_dir=/usr/lib/hive
+hive_dir=/usr/hdp/current/hive
 hive_lib_dir=${hive_dir}/lib
 hive_conf_dir=/etc/hive/conf
 hive_srv_conf_dir=/etc/hive/conf.server
@@ -45,8 +45,8 @@ else
 	hive_cli_conf_dir="${hive_conf_dir}"
 fi
 
-hdp_dir=/usr/lib/hadoop
-hdp_lib_dir=/usr/lib/hadoop/lib
+hdp_dir=/usr/hdp/current/hadoop
+hdp_lib_dir=${hdp_dir}/lib
 hdp_conf_dir=/etc/hadoop/conf
 
 export CONFIG_FILE_OWNER="hive:hadoop"
@@ -280,7 +280,7 @@ do
                 cp ${fullpathorgfn} ${archivefn}
                 if [ $? -eq 0 ]
                 then
-                	cp="${install_dir}/installer/lib/*:/usr/lib/hadoop/*:/usr/lib/hadoop/lib/*"
+                	cp="${install_dir}/installer/lib/*:${hdp_dir}/*:${hdp_lib_dir}/*"
                         java -cp "${cp}" com.xasecure.utils.install.XmlConfigChanger -i ${archivefn}
-o ${newfn} -c ${f} ${PROP_ARGS}
                         if [ $? -eq 0 ]
                         then


Mime
View raw message