accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joshelser <...@git.apache.org>
Subject [GitHub] accumulo pull request #228: ACCUMULO-4596 Improvements to standalone cluster...
Date Mon, 06 Mar 2017 21:35:39 GMT
Github user joshelser commented on a diff in the pull request:

    https://github.com/apache/accumulo/pull/228#discussion_r104528417
  
    --- Diff: minicluster/src/main/java/org/apache/accumulo/cluster/standalone/StandaloneClusterControl.java
---
    @@ -123,11 +114,12 @@ public int exec(Class<?> clz, String[] args) throws IOException
{
     
       public Entry<Integer,String> execMapreduceWithStdout(Class<?> clz, String[]
args) throws IOException {
         String host = "localhost";
    -    String[] cmd = new String[3 + args.length];
    -    cmd[0] = getToolPath();
    -    cmd[1] = getJarFromClass(clz);
    -    cmd[2] = clz.getName();
    -    for (int i = 0, j = 3; i < args.length; i++, j++) {
    +    String[] cmd = new String[4 + args.length];
    +    cmd[0] = getAccumuloUtilPath();
    +    cmd[1] = "hadoop-jar";
    +    cmd[2] = getJarFromClass(clz);
    +    cmd[3] = clz.getName();
    --- End diff --
    
    This is nice. How do this fail in the case of mis-configuration?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message