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:53 GMT
Repository: accumulo
Updated Branches:
  refs/heads/master b4f92abfe -> 7eaa02943


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/7eaa0294
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/7eaa0294
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/7eaa0294

Branch: refs/heads/master
Commit: 7eaa029430e09d4c4291acd0f89151e905f1cfa5
Parents: b4f92ab
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:07 2014 -0400

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


http://git-wip-us.apache.org/repos/asf/accumulo/blob/7eaa0294/init/pom.xml
----------------------------------------------------------------------
diff --git a/init/pom.xml b/init/pom.xml
index faf43d4..f7563d4 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