Updated Branches: refs/heads/master 234201d3b -> 8b52cb2e5
BIGTOP-1005. Create versionless symlinks in hadoop client directory Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/8b52cb2e Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/8b52cb2e Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/8b52cb2e Branch: refs/heads/master Commit: 8b52cb2e55f022b2e90a682b47b609acc697292a Parents: 234201d Author: Sean Mackrory <â[email protected]â> Authored: Tue Jun 11 09:43:17 2013 -0700 Committer: Roman Shaposhnik <[email protected]> Committed: Fri Jun 21 17:02:58 2013 -0700 ---------------------------------------------------------------------- bigtop-packages/src/common/hadoop/install_hadoop.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/8b52cb2e/bigtop-packages/src/common/hadoop/install_hadoop.sh ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/common/hadoop/install_hadoop.sh b/bigtop-packages/src/common/hadoop/install_hadoop.sh index a7409d9..5e66c2b 100755 --- a/bigtop-packages/src/common/hadoop/install_hadoop.sh +++ b/bigtop-packages/src/common/hadoop/install_hadoop.sh @@ -378,7 +378,10 @@ done install -d -m 0755 ${CLIENT_DIR} for file in `cat ${BUILD_DIR}/hadoop-client.list` ; do for dir in ${HADOOP_DIR}/{lib,} ${HDFS_DIR}/{lib,} ${YARN_DIR}/{lib,} ${MAPREDUCE_DIR}/{lib,} ; do - [ -e $dir/$file ] && ln -fs ${dir#$PREFIX}/$file ${CLIENT_DIR}/$file && continue 2 + [ -e $dir/$file ] && \ + ln -fs ${dir#$PREFIX}/$file ${CLIENT_DIR}/${file} && \ + ln -fs ${dir#$PREFIX}/$file ${CLIENT_DIR}/${file/-[[:digit:]]*/.jar} && \ + continue 2 done exit 1 done
