Return-Path: X-Original-To: apmail-accumulo-commits-archive@www.apache.org Delivered-To: apmail-accumulo-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0D80210A68 for ; Tue, 23 Jul 2013 16:54:47 +0000 (UTC) Received: (qmail 53125 invoked by uid 500); 23 Jul 2013 16:54:33 -0000 Delivered-To: apmail-accumulo-commits-archive@accumulo.apache.org Received: (qmail 52807 invoked by uid 500); 23 Jul 2013 16:54:32 -0000 Mailing-List: contact commits-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list commits@accumulo.apache.org Received: (qmail 51866 invoked by uid 99); 23 Jul 2013 16:54:31 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jul 2013 16:54:31 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 9122F8B215F; Tue, 23 Jul 2013 16:54:27 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: kturner@apache.org To: commits@accumulo.apache.org Date: Tue, 23 Jul 2013 16:54:56 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [31/50] git commit: ACCUMULO-1537 Fix maven dependency problems on hadoop-test ACCUMULO-1537 Fix maven dependency problems on hadoop-test Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/0793476d Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/0793476d Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/0793476d Branch: refs/heads/ACCUMULO-1000 Commit: 0793476d28c34c8ae725a9fea38af1569831813c Parents: 8513b55 Author: Christopher Tubbs Authored: Fri Jul 19 16:57:09 2013 -0400 Committer: Christopher Tubbs Committed: Fri Jul 19 18:54:45 2013 -0400 ---------------------------------------------------------------------- minicluster/pom.xml | 10 ++++------ .../apache/accumulo/minicluster/MiniAccumuloCluster.java | 10 +++++----- pom.xml | 5 +++++ test/pom.xml | 6 ------ 4 files changed, 14 insertions(+), 17 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/0793476d/minicluster/pom.xml ---------------------------------------------------------------------- diff --git a/minicluster/pom.xml b/minicluster/pom.xml index 3d1063b..d7c8778 100644 --- a/minicluster/pom.xml +++ b/minicluster/pom.xml @@ -46,6 +46,10 @@ accumulo-start + org.apache.hadoop + hadoop-test + + commons-configuration commons-configuration provided @@ -76,12 +80,6 @@ test - org.apache.hadoop - hadoop-test - ${hadoop.version} - test - - org.slf4j slf4j-api test http://git-wip-us.apache.org/repos/asf/accumulo/blob/0793476d/minicluster/src/main/java/org/apache/accumulo/minicluster/MiniAccumuloCluster.java ---------------------------------------------------------------------- diff --git a/minicluster/src/main/java/org/apache/accumulo/minicluster/MiniAccumuloCluster.java b/minicluster/src/main/java/org/apache/accumulo/minicluster/MiniAccumuloCluster.java index 7c00cec..4f9ff89 100644 --- a/minicluster/src/main/java/org/apache/accumulo/minicluster/MiniAccumuloCluster.java +++ b/minicluster/src/main/java/org/apache/accumulo/minicluster/MiniAccumuloCluster.java @@ -182,7 +182,7 @@ public class MiniAccumuloCluster { List jvmOpts = new ArrayList(); jvmOpts.add("-Xmx" + config.getMemory(serverType)); - + if (config.isJDWPEnabled()) { Integer port = PortUtils.getRandomFreePort(); jvmOpts.addAll(buildRemoteDebugParams(port)); @@ -232,13 +232,13 @@ public class MiniAccumuloCluster { miniDFS = new MiniDFSCluster(conf, 1, true, null); miniDFS.waitClusterUp(); InetSocketAddress dfsAddress = miniDFS.getNameNode().getNameNodeAddress(); - String uri = "hdfs://"+ dfsAddress.getHostName() + ":" + dfsAddress.getPort(); + String uri = "hdfs://" + dfsAddress.getHostName() + ":" + dfsAddress.getPort(); File coreFile = new File(config.getConfDir(), "core-site.xml"); writeConfig(coreFile, Collections.singletonMap("fs.default.name", uri)); File hdfsFile = new File(config.getConfDir(), "hdfs-site.xml"); writeConfig(hdfsFile, Collections.singletonMap("dfs.support.append", "true")); - Map siteConfig = config.getSiteConfig(); + Map siteConfig = config.getSiteConfig(); siteConfig.put(Property.INSTANCE_DFS_URI.getKey(), uri); siteConfig.put(Property.INSTANCE_DFS_DIR.getKey(), "/accumulo"); config.setSiteConfig(siteConfig); @@ -283,7 +283,7 @@ public class MiniAccumuloCluster { } } - private void writeConfig(File file, Map settings) throws IOException { + private void writeConfig(File file, Map settings) throws IOException { FileWriter fileWriter = new FileWriter(file); fileWriter.append("\n"); @@ -427,7 +427,7 @@ public class MiniAccumuloCluster { for (LogWriter lw : logWriters) { lw.flush(); } - + if (zooKeeperProcess != null) { zooKeeperProcess.destroy(); } http://git-wip-us.apache.org/repos/asf/accumulo/blob/0793476d/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 6454ff3..8f67cbd 100644 --- a/pom.xml +++ b/pom.xml @@ -300,6 +300,11 @@ org.apache.hadoop + hadoop-test + ${hadoop.version} + + + org.apache.hadoop hadoop-tools ${hadoop.version} http://git-wip-us.apache.org/repos/asf/accumulo/blob/0793476d/test/pom.xml ---------------------------------------------------------------------- diff --git a/test/pom.xml b/test/pom.xml index 2f89d7a..8343bb2 100644 --- a/test/pom.xml +++ b/test/pom.xml @@ -133,12 +133,6 @@ test - org.apache.hadoop - hadoop-test - ${hadoop.version} - test - - org.mortbay.jetty jetty test