美文网首页
hbase单元测试 微型集群方案

hbase单元测试 微型集群方案

作者: dongweima | 来源:发表于2017-10-02 16:15 被阅读0次

    微型集群
    windows 使用条件

    1. NativeIO 替换掉,自己access直接返回true

    2. 下载 winutil.exe

    并配置System.setProperty("hadoop.home.dir","d:\winutil\");
    注意 winnull.exe 放到winutil/bin目录下

    3. pom引入

    1,2,3条可以在自己封装的测试包中处理掉

       <dependency>
           <groupId>org.apache.hbase</groupId>
           <artifactId>hbase-server</artifactId>
           <version>${hbase-client.version}</version>
           <scope>test</scope>
       </dependency>
       <dependency>
       <groupId>org.apache.hbase</groupId>
           <artifactId>hbase-server</artifactId>
           <version>${hbase-client.version}</version>
           <scope>test</scope>
           <type>test-jar</type>
       </dependency>
       <dependency>
       <groupId>org.apache.hbase</groupId>
           <artifactId>hbase-testing-util</artifactId>
           <version>${hbase-client.version}</version>
           <scope>test</scope>
       </dependency>
    

    相关文章

      网友评论

          本文标题:hbase单元测试 微型集群方案

          本文链接:https://www.haomeiwen.com/subject/oxrtyxtx.html