You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ec...@apache.org on 2014/04/01 19:50:38 UTC

git commit: ACCUMULO-2601 test for the existence of /accumulo in hdfs

Repository: accumulo
Updated Branches:
  refs/heads/1.6.0-SNAPSHOT 4956b15a6 -> 7a68838ac


ACCUMULO-2601 test for the existence of /accumulo in hdfs


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

Branch: refs/heads/1.6.0-SNAPSHOT
Commit: 7a68838ac5650dbc1bfe64818506875c4dacc099
Parents: 4956b15
Author: Eric C. Newton <er...@gmail.com>
Authored: Tue Apr 1 13:50:07 2014 -0400
Committer: Eric C. Newton <er...@gmail.com>
Committed: Tue Apr 1 13:50:28 2014 -0400

----------------------------------------------------------------------
 init/pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/7a68838a/init/pom.xml
----------------------------------------------------------------------
diff --git a/init/pom.xml b/init/pom.xml
index c811fff..8ffe3f6 100644
--- a/init/pom.xml
+++ b/init/pom.xml
@@ -86,7 +86,7 @@
                     </mapping>
                   </mappings>
                   <postinstallScriptlet>
-                    <script>su hdfs -c 'hadoop fs -mkdir /accumulo &amp;&amp; hadoop fs -chown accumulo /accumulo'</script>
+                    <script>su hdfs -c 'hadoop fs -test -e /accumulo || hadoop fs -mkdir /accumulo &amp;&amp; hadoop fs -chown accumulo /accumulo'</script>
                   </postinstallScriptlet>
                 </configuration>
               </execution>