net.sf.jasperreports.engine.JRException:未定义反序列化程序

时间:2015-05-25 00:30:26

标签: hadoop jasper-reports hbase ireport

我想将HBASE与jasperreports-server-cp-6.0.1连接起来。我的系统上安装了hadoop 2.5.2hbase-1.0.1

我在HBasePlugin-0.5.1.nbm安装了iReport 5.6.0插件。

我已遵循以下所有步骤:http://community.jaspersoft.com/wiki/hadoop-hbase

当我写下面的查询时:

{ "tableName" : "blogposts",   "deserializerClass" : "com.jaspersoft.hbase.deserialize.impl.ShellDeserializer" }

在iReport中,我收到以下错误:

Message:
    net.sf.jasperreports.engine.JRException: No deserializer defined
Level:
    SEVERE
Stack Trace:
No deserializer defined
    com.jaspersoft.hadoop.hbase.query.HBaseQueryWrapper.<init>(HBaseQueryWrapper.java:152)
    com.jaspersoft.hadoop.hbase.HBaseFieldsProvider.getFields(HBaseFieldsProvider.java:50)
    com.jaspersoft.ireport.hbase.designer.HBaseFieldsProvider.getFields(HBaseFieldsProvider.java:57)
    com.jaspersoft.ireport.hbase.connection.HBaseConnection.readFields(HBaseConnection.java:185)
    com.jaspersoft.ireport.designer.wizards.ConnectionSelectionWizardPanel.validate(ConnectionSelectionWizardPanel.java:146)
    org.openide.WizardDescriptor$7.run(WizardDescriptor.java:1357)
    org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
    org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)

你能否帮我解决这个错误(我也试过了iReport 4.0.2,但我收到了同样的错误)?

1 个答案:

答案 0 :(得分:0)

iReport和HBase连接器都已过时。 尝试使用与Jaspersoft产品的最新版本(6.2)兼容的Apache Phoenix JDBC驱动程序:

http://community.jaspersoft.com/wiki/how-use-apache-phoenix-jdbc-driver-run-reports-hbase

谢谢!