From fe48e76b2b24d6020203a1654e3354482c240988 Mon Sep 17 00:00:00 2001 From: zhaigy Date: Fri, 26 Oct 2012 11:41:17 +0800 Subject: [PATCH] fix --- cdh4/bin/myscp | 2 +- cdh4/support/deploy_hadoop_env.sh | 4 ++-- cdh4/support/deploy_zookeeper_env.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cdh4/bin/myscp b/cdh4/bin/myscp index 65d7b98..37fdc32 100755 --- a/cdh4/bin/myscp +++ b/cdh4/bin/myscp @@ -5,7 +5,7 @@ if [ $# -ne 2 ]; then echo "USAGE: $0 filename SERVER_NAME"; - echo "eg.: $0 main.cpp kpi11"; + echo "eg.: $0 main.cpp host1"; exit 1; fi diff --git a/cdh4/support/deploy_hadoop_env.sh b/cdh4/support/deploy_hadoop_env.sh index 8e1a94d..69a0d2a 100755 --- a/cdh4/support/deploy_hadoop_env.sh +++ b/cdh4/support/deploy_hadoop_env.sh @@ -11,10 +11,10 @@ fi # Tar包 if IS_32 ; then #JAVA_TAR="jdk-7u3-linux-i586.tar.gz" - JAVA_TAR=`find_tar "jdk-.*-linux-i586"` + JAVA_TAR=`find_tar "jdk.*86"` else #JAVA_TAR="jdk-7u3-linux-x64.tar.gz" - JAVA_TAR=`find_tar "jdk-.*-linux-x64"` + JAVA_TAR=`find_tar "jdk.*x64"` fi #HADOOP_TAR="hadoop-2.0.0-cdh4.0.0.tar.gz" diff --git a/cdh4/support/deploy_zookeeper_env.sh b/cdh4/support/deploy_zookeeper_env.sh index a5a13eb..b9b5374 100755 --- a/cdh4/support/deploy_zookeeper_env.sh +++ b/cdh4/support/deploy_zookeeper_env.sh @@ -9,7 +9,7 @@ fi . $DEPLOYER_HOME/support/PUB.sh ##### tar package ##### -ZK_TAR="zookeeper-3.4.3-cdh4.0.0.tar.gz" +ZK_TAR=`find_tar "zookeeper.*-cdh4.*" ZK_VERSION=${ZK_TAR%.tar.gz} ##### conf file #####