微型集群
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>
网友评论