返回 登录
0

sqoop从mysql中导出数据到hbase表中

新手求助,哪位大神帮个忙看看呗;
sqoop从mysql中导出数据到hbase表中
语句:sqoop import –connect jdbc:mysql://132.7.42.138:3306/hadoopguide –username root –password root123456 –table DAGE41 –hbase-create-table –hbase-table DAGE41 –column-family CDKSNO,CDKSNAME,YEAR,CDKSTERM,DATESTR,DATEEND,PERPRDCD,COPPRDCD,RATE,PERISALW,PERLMT,PERREM,COPISALW,COPLMT,COPREM,TOTLMT,TOTREM,CHAN1,CHAN2,CHAN3,PERSUBMIN,PERSUBMAX,PERSUBINC,COPSUBMIN,COPSUBMAX,COPSUBINC,MODPYINT,ISADVDRW,CALINTFLG,STATUS,BRCCRT,TELCRT,DATECRT,SEQNOCRT,BRCMOD,TELMOD,DATEMOD,SEQNOMOD,MEMO1,MEMO2,MEMO3
–hbase-row-key ID –split-by ID
报错信息:
Error: java.lang.IllegalArgumentException: Family > 127
at org.apache.hadoop.hbase.KeyValue.checkParameters(KeyValue.java:896)
at org.apache.hadoop.hbase.KeyValue.createByteArray(KeyValue.java:1066)
at org.apache.hadoop.hbase.KeyValue.(KeyValue.java:653)
at org.apache.hadoop.hbase.KeyValue.(KeyValue.java:581)
at org.apache.hadoop.hbase.KeyValue.(KeyValue.java:484)
at org.apache.hadoop.hbase.client.Mutation.createPutKeyValue(Mutation.java:126)
at org.apache.hadoop.hbase.client.Put.addColumn(Put.java:207)
at org.apache.hadoop.hbase.client.Put.addColumn(Put.java:155)
at org.apache.hadoop.hbase.client.Put.add(Put.java:144)
at org.apache.sqoop.hbase.ToStringPutTransformer.putRecordInHBase(ToStringPutTransformer.java:188)
at org.apache.sqoop.hbase.ToStringPutTransformer.getPutCommand(ToStringPutTransformer.java:151)
at org.apache.sqoop.hbase.HBasePutProcessor.accept(HBasePutProcessor.java:148)
at org.apache.sqoop.mapreduce.DelegatingOutputFormatDelegatingRecordWriter.write(DelegatingOutputFormat.java:128)atorg.apache.sqoop.mapreduce.DelegatingOutputFormatDelegatingRecordWriter.write(DelegatingOutputFormat.java:92)
at org.apache.hadoop.mapred.MapTaskNewDirectOutputCollector.write(MapTask.java:658)atorg.apache.hadoop.mapreduce.task.TaskInputOutputContextImpl.write(TaskInputOutputContextImpl.java:89)atorg.apache.hadoop.mapreduce.lib.map.WrappedMapperContext.write(WrappedMapper.java:112)
at org.apache.sqoop.mapreduce.HBaseImportMapper.map(HBaseImportMapper.java:38)
at org.apache.sqoop.mapreduce.HBaseImportMapper.map(HBaseImportMapper.java:31)
at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:146)
at org.apache.sqoop.mapreduce.AutoProgressMapper.run(AutoProgressMapper.java:64)
at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:787)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341)
at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:175)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:422)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1807)
at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:169)

评论