diff --git a/src/test/java/com/nhn/hippo/web/performance/TestSuite.java b/src/test/java/com/nhn/hippo/web/performance/TestSuite.java index cd67ef41f..1ea28fb08 100644 --- a/src/test/java/com/nhn/hippo/web/performance/TestSuite.java +++ b/src/test/java/com/nhn/hippo/web/performance/TestSuite.java @@ -4,6 +4,7 @@ import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.DefaultHttpClient; +import org.junit.Ignore; import org.junit.Test; import java.io.IOException; @@ -11,8 +12,9 @@ import java.io.IOException; /** * */ +@Ignore public class TestSuite { - @Test + // @Test public void insertData() throws IOException, InterruptedException { diff --git a/src/test/java/com/nhn/hippo/web/service/FlowChartServiceImplTest.java b/src/test/java/com/nhn/hippo/web/service/FlowChartServiceImplTest.java index 2163614cb..160c5faa2 100644 --- a/src/test/java/com/nhn/hippo/web/service/FlowChartServiceImplTest.java +++ b/src/test/java/com/nhn/hippo/web/service/FlowChartServiceImplTest.java @@ -12,55 +12,57 @@ import org.apache.hadoop.hbase.client.Result; import org.apache.hadoop.hbase.util.Bytes; import org.junit.AfterClass; import org.junit.BeforeClass; +import org.junit.Ignore; import org.junit.Test; import com.profiler.common.hbase.HBaseClient; +@Ignore public class FlowChartServiceImplTest { - private static final String TABLE_NAME = "ttt"; + private static final String TABLE_NAME = "ttt"; - private static HBaseClient client; + private static HBaseClient client; - @BeforeClass - public static void init() { - client = new HBaseClient("localhost", "2181", 2); - Assert.assertNotNull(client); - } + @BeforeClass + public static void init() { + client = new HBaseClient("localhost", "2181", 2); + Assert.assertNotNull(client); + } - @AfterClass - public static void destroy() { - client.close(); - } + @AfterClass + public static void destroy() { + client.close(); + } - @Test - public void hbase() { - List gets = new ArrayList(1); - gets.add(new Get("row1".getBytes())); + @Test + public void hbase() { + List gets = new ArrayList(1); + gets.add(new Get("row1".getBytes())); - Result[] results = client.get(TABLE_NAME, gets); + Result[] results = client.get(TABLE_NAME, gets); - for (Result r : results) { - NavigableMap>> map = r.getMap(); + for (Result r : results) { + NavigableMap>> map = r.getMap(); - for (Entry>> entry : map.entrySet()) { - byte[] family = entry.getKey(); - System.out.println("family=" + Bytes.toString(family)); + for (Entry>> entry : map.entrySet()) { + byte[] family = entry.getKey(); + System.out.println("family=" + Bytes.toString(family)); - NavigableMap> values = entry.getValue(); + NavigableMap> values = entry.getValue(); - for (Entry> value : values.entrySet()) { - byte[] colname = value.getKey(); - System.out.println("colname=" + Bytes.toString(colname)); + for (Entry> value : values.entrySet()) { + byte[] colname = value.getKey(); + System.out.println("colname=" + Bytes.toString(colname)); - NavigableMap valueSeries = value.getValue(); + NavigableMap valueSeries = value.getValue(); - for (Entry v : valueSeries.entrySet()) { - byte[] vv = v.getValue(); - System.out.println("value=" + Bytes.toString(vv)); - } - } - } - } - } + for (Entry v : valueSeries.entrySet()) { + byte[] vv = v.getValue(); + System.out.println("value=" + Bytes.toString(vv)); + } + } + } + } + } } diff --git a/src/test/resources/test-hbase.properties b/src/test/resources/test-hbase.properties index 409edad0a..3477b7c40 100644 --- a/src/test/resources/test-hbase.properties +++ b/src/test/resources/test-hbase.properties @@ -1,4 +1,6 @@ #hbase.client.host=localhost hbase.client.host=10.25.131.38 -hbase.client.port=2181 \ No newline at end of file +hbase.client.port=2181 + +hbase.htable.threads.max=32 \ No newline at end of file