accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject git commit: ACCUMULO-2601 test for the existence of /accumulo in hdfs
Date Tue, 01 Apr 2014 17:50:38 GMT
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 <eric.newton@gmail.com>
Authored: Tue Apr 1 13:50:07 2014 -0400
Committer: Eric C. Newton <eric.newton@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>


Mime
View raw message