You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by dl...@apache.org on 2014/05/16 01:43:21 UTC

[2/3] git commit: ACCUMULO-2761: Add regex to remove everything after the last slash

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/master
Commit: ff17423fae883f51d2a837d1eb5359437440fbc7
Parents: 0cdd5fd
Author: Dave Marion <dl...@hotmail.com>
Authored: Thu May 15 19:39:26 2014 -0400
Committer: Dave Marion <dl...@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