给hbase增加协处理器报ERROR: org.apache.hadoop.hbase.DoNotRetryIOException:错误

刚开始,我输入协处理器的语法是这样子输入的(隔了好几天,我又用这个语法,又能行了,郁闷):

alter 'publicDataset:comment',METHOD =>'table_att','coprocessor'=>'hdfs://node1:8020/putJar/test-corprocessor.jar|com.train.endpointserver.SimilarityServer|1001|'

但是一直报错,后来看报错提示说

You can add a table coprocessor by setting a table coprocessor attribute:

  hbase> alter 't1',
    'coprocessor'=>'hdfs:///foo.jar|com.foo.FooRegionObserver|1001|arg1=1,arg2=2'

Since you can have multiple coprocessors configured for a table, a
sequence number will be automatically appended to the attribute name
to uniquely identify it.

The coprocessor attribute must match the pattern below in order for
the framework to understand how to load the coprocessor classes:

  [coprocessor jar file location] | class name | [priority] | [arguments]

倒数第二段说必须遵守这种格式,然后我就也把参数加上了

alter 'publicDataset:comment',METHOD =>'table_att','coprocessor'=>'hdfs://node1:8020/putJar/test-corprocessor.jar|com.train.endpointserver.SimilarityServer|1001|arg1=1,arg2=2'

然后还是报这种错误。
然后我就看别人增加协处理器怎么写的
他们的用的hdfs:///,而我用的hdfs://node1:8020/。于是我就改成了hdfs:///

alter 'publicDataset:comment',METHOD =>'table_att','coprocessor'=>'hdfs:///putJar/test-corprocessor.jar|com.train.endpointserver.SimilarityServer|1001|arg1=1,arg2=2'

然后就好了,以我的理解
hdfs:/// 是说明从这个文件系统找内容,就好像file:///一样

hdfs://node1:8020/ 是hdfs文件系统的地址。
不知道我这样理解的对不对,有大神看见可以帮忙指导下,这两个地方有什么区别

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值