0
我有一些带有“.spc”模式的二进制文件,我想用pig mapper将这些文件存储到HBase中。 rowkey是文件名。将二进制文件存储到hbase与猪
这里是我的命令:
A = LOAD 'hdfs-directory/sampleID-uvvis.spc' USING BinStorage();
B = FOREACH A GENERATE $0 AS rowkey;
C = GROUP B BY rowkey;
STORE C INTO 'hbase://test3' USING BinStorage('colfamily:uvis');
而且我得到了错误象下面这样:
[main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2116:
<line 12, column 0> Output Location Validation Failed for: 'hbase://test3
More info to follow:
java.io.IOException: No FileSystem for scheme: hbase
我还检查了文件加载后:
Dump A
Input(s):
Successfully read 0 records (3353 bytes) from: "hdfs-directory-uvvis.spc"
Output(s):
Successfully stored 0 records in: "hdfs-directory/tmp/temp-
707332811/tmp1004712115"
谁能帮我有这个问题吗?如何加载和存储二进制文件到HBase?
我是新来的HBase和猪工作,任何想法都将会升值。
感谢您的回复,我试图用新的类进行存储。存储过程起作用! “输入: 成功读取”hdfs-directory/sampleID-uvvis.spc“中的0条记录(3353字节) 输出( s): 成功将0条记录存储在:“hbase:// test3” –