项目作者: aliyun

项目描述 :
Aliyun tablestore hbase client
高级语言: Java
项目地址: git://github.com/aliyun/aliyun-tablestore-hbase-client.git
创建时间: 2017-02-08T03:45:35Z
项目社区:https://github.com/aliyun/aliyun-tablestore-hbase-client

开源协议:Apache License 2.0

下载


Aliyun Tablestore HBase client for Java

Software License
GitHub version

Compile

  1. # Java 8
  2. # skip compile and install test
  3. mvn clean install -Dmaven.test.skip=true

Test

set your config in src/test/resources/hbase-site.xml

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  3. <!--
  4. /**
  5. *
  6. * Licensed to the Apache Software Foundation (ASF) under one
  7. * or more contributor license agreements. See the NOTICE file
  8. * distributed with this work for additional information
  9. * regarding copyright ownership. The ASF licenses this file
  10. * to you under the Apache License, Version 2.0 (the
  11. * "License"); you may not use this file except in compliance
  12. * with the License. You may obtain a copy of the License at
  13. *
  14. * http://www.apache.org/licenses/LICENSE-2.0
  15. *
  16. * Unless required by applicable law or agreed to in writing, software
  17. * distributed under the License is distributed on an "AS IS" BASIS,
  18. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  19. * See the License for the specific language governing permissions and
  20. * limitations under the License.
  21. */
  22. -->
  23. <configuration>
  24. <property>
  25. <name>hbase.client.connection.impl</name>
  26. <value>com.alicloud.tablestore.hbase.TablestoreConnection</value>
  27. </property>
  28. <property>
  29. <name>tablestore.client.endpoint</name>
  30. <value>http://xxx:80</value>
  31. </property>
  32. <property>
  33. <name>tablestore.client.instancename</name>
  34. <value>xxx</value>
  35. </property>
  36. <property>
  37. <name>tablestore.client.accesskeyid</name>
  38. <value>xxx</value>
  39. </property>
  40. <property>
  41. <name>tablestore.client.accesskeysecret</name>
  42. <value>xxx</value>
  43. </property>
  44. <property>
  45. <name>hbase.client.tablestore.family</name>
  46. <value>s</value>
  47. </property>
  48. <property>
  49. <name>hbase.client.tablestore.table</name>
  50. <value>ots_adaptor</value>
  51. </property>
  52. <property>
  53. <name>hbase.defaults.for.version.skip</name>
  54. <value>true</value>
  55. </property>
  56. <property>
  57. <name>hbase.hconnection.meta.lookup.threads.core</name>
  58. <value>4</value>
  59. </property>
  60. <property>
  61. <name>hbase.hconnection.threads.keepalivetime</name>
  62. <value>3</value>
  63. </property>
  64. </configuration>