Pentaho HBase导入:由于日期数据类型抛出错误而从HBase中提取

时间:2019-04-30 15:34:01

标签: type-conversion hbase pentaho pentaho-spoon pentaho-data-integration

我正在尝试使用HBase输入步骤查询hbase。但这会抛出错误“ HBase输入2.0-日期列值的长度必须等于长值的长度”

以下是我的配置的屏幕截图 enter image description here enter image description here

这是我在HBase表中拥有的数据 enter image description here

您可以看到messageTimestamp是一串数字。我想在此列上过滤查询 enter image description here

但这会引发一个我怀疑与类型转换有关的错误。

2019/04/26 11:56:05 - HBase input 2.0 - ERROR (version 8.2.0.0-342, build 8.2.0.0-342 from 2018-11-14 10.30.55 by buildguy) : Unexpected error  
2019/04/26 11:56:05 - HBase input 2.0 - ERROR (version 8.2.0.0-342, build 8.2.0.0-342 from 2018-11-14 10.30.55 by buildguy) : org.pentaho.di.core.exception.KettleException:  
2019/04/26 11:56:05 - HBase input 2.0 - Unable to execute source table scan  
2019/04/26 11:56:05 - HBase input 2.0 - java.lang.IllegalArgumentException: java.lang.ClassCastException@75d93487  
2019/04/26 11:56:05 - HBase input 2.0 -  
2019/04/26 11:56:05 - HBase input 2.0 - at org.pentaho.big.data.kettle.plugins.hbase.input.HBaseInput.processRow(HBaseInput.java:245)  
2019/04/26 11:56:05 - HBase input 2.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)  
2019/04/26 11:56:05 - HBase input 2.0 - at java.lang.Thread.run(Unknown Source)  
2019/04/26 11:56:05 - HBase input 2.0 - Caused by: java.io.IOException: java.lang.IllegalArgumentException: java.lang.ClassCastException@75d93487  
2019/04/26 11:56:05 - HBase input 2.0 - at com.pentaho.big.data.bundles.impl.shim.hbase.table.ResultScannerBuilderImpl$3.perform(ResultScannerBuilderImpl.java:109)  
2019/04/26 11:56:05 - HBase input 2.0 - at com.pentaho.big.data.bundles.impl.shim.hbase.BatchHBaseConnectionOperation.perform(BatchHBaseConnectionOperation.java:45)  
2019/04/26 11:56:05 - HBase input 2.0 - at com.pentaho.big.data.bundles.impl.shim.hbase.table.ResultScannerBuilderImpl.build(ResultScannerBuilderImpl.java:126)  
2019/04/26 11:56:05 - HBase input 2.0 - at org.pentaho.big.data.kettle.plugins.hbase.input.HBaseInput.processRow(HBaseInput.java:243)  

如果我删除过滤器并尝试提取完整表格。我仍然低于错误

2019/04/26 11:59:46 - HBase input 2.0 - ERROR (version 8.2.0.0-342, build 8.2.0.0-342 from 2018-11-14 10.30.55 by buildguy) : Unexpected error  
2019/04/26 11:59:46 - HBase input 2.0 - ERROR (version 8.2.0.0-342, build 8.2.0.0-342 from 2018-11-14 10.30.55 by buildguy) : org.pentaho.di.core.exception.KettleException:  
2019/04/26 11:59:46 - HBase input 2.0 - The length of a date column value must equal that of a long  
2019/04/26 11:59:46 - HBase input 2.0 -  
2019/04/26 11:59:46 - HBase input 2.0 - at org.pentaho.hbase.shim.api.HBaseValueMeta.decodeColumnValue(HBaseValueMeta.java:755)  
2019/04/26 11:59:46 - HBase input 2.0 - at com.pentaho.big.data.bundles.impl.shim.hbase.meta.HBaseValueMetaInterfaceImpl.decodeColumnValue(HBaseValueMetaInterfaceImpl.java:49)  
2019/04/26 11:59:46 - HBase input 2.0 - at org.pentaho.big.data.kettle.plugins.hbase.input.HBaseInputData.getOutputRow(HBaseInputData.java:281)  
2019/04/26 11:59:46 - HBase input 2.0 - at org.pentaho.big.data.kettle.plugins.hbase.input.HBaseInput.processRow(HBaseInput.java:287)  
2019/04/26 11:59:46 - HBase input 2.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)  
2019/04/26 11:59:46 - HBase input 2.0 - at java.lang.Thread.run(Unknown Source)  

任何想法导致此错误的原因。

0 个答案:

没有答案