像我这样的 jar 包
标签:
JavaScript
Apache HBase Connector 这个 Hbase 连接器可以使用 Spark 读写 Hbase。但是 github 上没有说明怎么把它添加到 pom 文件中。
Google 了一下, 在 Maven 仓库 有这个依赖:
<!-- https://mvnrepository.com/artifact/com.hortonworks/shc-core --><dependency> <groupId>com.hortonworks</groupId> <artifactId>shc-core</artifactId> <version>1.1.1-2.1-s_2.11</version></dependency>
添加到 pom 文件里面发现还不行, 报红。说明找不到依赖!注意到下面还有行小字:
Note: this artifact it located at Hortonworks repository
点击 hortonworks 看下右边的 Indexed Repositories , 其中每一行对应着仓库配置中的一个 id: Hortonworks, 这个 ID 在下面的仓库配置中就对应 <id>。
这样的 jar 包在标准仓库里面没有,需要你在 pom 文件里面添加上仓库地址:
<repository> <id>hortonworks</id> <name>Hortonworks Repository</name> <url>http://repo.hortonworks.com/content/repositories/releases/</url></repository>
作者:焉知非鱼
链接:https://www.jianshu.com/p/cd33718ae687
点击查看更多内容
为 TA 点赞
评论
共同学习,写下你的评论
评论加载中...
作者其他优质文章
正在加载中
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦