accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlmar...@apache.org
Subject [1/3] git commit: ACCUMULO-2761: Add regex to remove everything after the last slash
Date Thu, 15 May 2014 23:43:20 GMT
Repository: accumulo
Updated Branches:
  refs/heads/1.6.1-SNAPSHOT 0cdd5fd08 -> ff17423fa
  refs/heads/master 31ebacfec -> e0468b2e5


ACCUMULO-2761: Add regex to remove everything after the last slash


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

Branch: refs/heads/1.6.1-SNAPSHOT
Commit: ff17423fae883f51d2a837d1eb5359437440fbc7
Parents: 0cdd5fd
Author: Dave Marion <dlmarion@hotmail.com>
Authored: Thu May 15 19:39:26 2014 -0400
Committer: Dave Marion <dlmarion@hotmail.com>
Committed: Thu May 15 19:39:26 2014 -0400

----------------------------------------------------------------------
 bin/bootstrap_hdfs.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/ff17423f/bin/bootstrap_hdfs.sh
----------------------------------------------------------------------
diff --git a/bin/bootstrap_hdfs.sh b/bin/bootstrap_hdfs.sh
index 0a3f866..6f38f63 100755
--- a/bin/bootstrap_hdfs.sh
+++ b/bin/bootstrap_hdfs.sh
@@ -30,7 +30,7 @@ bin="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
 #
 # Find the system context directory in HDFS
 #
-SYSTEM_CONTEXT_HDFS_DIR=$(grep -A1 "general.vfs.classpaths" "$ACCUMULO_CONF_DIR/accumulo-site.xml"
| tail -1 | perl -pe 's/\s+<value>//; s/<\/value>//; print $ARGV[1]')
+SYSTEM_CONTEXT_HDFS_DIR=$(grep -A1 "general.vfs.classpaths" "$ACCUMULO_CONF_DIR/accumulo-site.xml"
| tail -1 | perl -pe 's/\s+<value>//; s/<\/value>//; s|[^/]+$||; print $ARGV[1]')
 
 if [ -z "$SYSTEM_CONTEXT_HDFS_DIR" ]
 then


Mime
View raw message