- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在 Clojure 中,如果我想使用 hbase 测试实用程序启动测试集群,我必须使用以下内容注释我的依赖项:
[org.apache.hbase/hbase "0.92.2" :classifier "tests" :scope "test"]
;; Dependencies are listed as [group-id/name version]; in addition
;; to keywords supported by Pomegranate, you can use :native-prefix
;; to specify a prefix. This prefix is used to extract natives in
;; jars that don't adhere to the default "<os>/<arch>/" layout that
;; Leiningen expects.
[org.apache.hbase/hbase "0.94.6.1" :classifier "tests" :scope "test"]
Exception in thread "main" java.lang.ClassNotFoundException: org.apache.hadoop.hbase.HBaseConfiguration
最佳答案
添加到依赖项声明的任何键/值对都用作 clojure pomegranate 库的参数
识别的 key 列在此处的源中:in the source to pomagranate (以供将来引用,该链接指向功能 resolve-artifacts*)
the maven pom docs may also be helpful
:scope 描述了使用依赖项的条件,因此 :scope "test"似乎表明该依赖项仅在测试时被拉入
:classifier 似乎表明了一个额外的元素来区分版本
我推测较新的 hbase 版本的依赖项解析可能有一个配置不当的 pom,它没有正确声明其依赖项。尝试查找 org.apache.hadoop.hbase.HBaseConfiguration 的信息并手动要求包。
关于unit-testing - Clojure/HBase : How to Import HBaseTestingUtility in v0. 94.6.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17410849/
我们使用HBaseTestingUtility对与HBase相关的代码进行单元测试。问题在于,在执行单元测试时,输出中会填充吨org.apache.hadoop.* DEBUG消息。 HBaseTes
我正在尝试使用 HBaseTestingUtility 库调试 java 代码。我已经创建了表。我需要:- 在“myTable”中插入带有键的值- 使用键从“myTable”获取值- 验证返回的值是否
我正在编写一段代码来操作存储在 HBase 中的数据。我还想为这段代码编写一个测试。我想在测试中使用 HBaseTestingUtility,因此,在我的 @BeforeClass 中,我创建 HBa
我正在尝试使用 HbaseTestingUtility 测试我的 Hbase 代码。每次我使用下面的代码片段启动我的迷你集群时,我都会遇到异常。 public void startCluste
我使用 HBaseTestingUtility 进行集成测试。我想让 Zookeeper 监听 2181 端口 HBaseTestingUtility testUtil = new HBaseTest
我在 IntelliJ IDE 中运行 HbaseTestingUtility 时遇到问题,我可以看到以下错误可能是文件名太长的结果: 16/03/14 22:45:13 WARN datanode.
我们正在使用 cdh3u4、Hadoop 和 HBase。在启动 HBaseTestingUtility 提供的 miniMapReduceCluster 之后,我正在尝试运行一个单元测试以启动 Ma
我正在尝试将 HBaseTestingUtility 与 CDH 5.7 一起使用,如以下博客和 github 中所述 http://blog.cloudera.com/blog/2013/09/ho
在 Clojure 中,如果我想使用 hbase 测试实用程序启动测试集群,我必须使用以下内容注释我的依赖项: [org.apache.hbase/hbase "0.92.2" :classifier
我正在尝试使用 HBaseTestingUtility 1.2 与 hbase-shaded-client & hbase-shaded-server .它向我抛出了以下异常。谁能告诉我如何避免这种情
我是一名优秀的程序员,十分优秀!