Jaspersoft ireport设计器4.5.1/4.6.0&蜂巢 [英] Jaspersoft ireport designer 4.5.1 /4.6.0 & hive

查看:60
本文介绍了Jaspersoft ireport设计器4.5.1/4.6.0&蜂巢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用配置单元连接设计报告. 我创建了配置单元连接,并测试了它是否可以正常工作.

I am trying to design a report using hive connection. I created hive connection and tested it is working ok.

我在做错什么吗?我是iReport的新手.

Is there anything i am doing wrong. I am new to iReport.

jdbc:hive://192.168.254.132:10000/default

jdbc:hive://192.168.254.132:10000/default

我正在使用报表设计器,我在HiveQL中输入了它,未指定REPORT_CONNECTION参数.

I am using report designer, I typed in my HiveQL it gives REPORT_CONNECTION parameter not specified.

我已指定配置单元连接.

I have specified the hive connection.

我尝试了简单的查询,请从iptable中选择*.

i tried simple query, select * from iptable.

消息: net.sf.jasperreports.engine.JRException:参数"REPORT_CONNECTION"不存在. 等级: 严重的 堆栈跟踪: 参数"REPORT_CONNECTION"不存在. com.jaspersoft.hadoop.hive.HiveFieldsProvider.getFields(HiveFieldsProvider.java:88) com.jaspersoft.ireport.hadoop.hive.designer.HiveFieldsProvider.getFields(HiveFieldsProvider.java:32) com.jaspersoft.ireport.hadoop.hive.connection.HiveConnection.readFields(HiveConnection.java:154) 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)

message: net.sf.jasperreports.engine.JRException: Parameter "REPORT_CONNECTION" does not exist. Level: SEVERE Stack Trace: Parameter "REPORT_CONNECTION" does not exist. com.jaspersoft.hadoop.hive.HiveFieldsProvider.getFields(HiveFieldsProvider.java:88) com.jaspersoft.ireport.hadoop.hive.designer.HiveFieldsProvider.getFields(HiveFieldsProvider.java:32) com.jaspersoft.ireport.hadoop.hive.connection.HiveConnection.readFields(HiveConnection.java:154) 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.5.0中运行良好.但是它以4.5.1破解,以某种方式没人注意到它.报告仍然可以正常工作,因此该漏洞可以逃避测试.它似乎只影响字段提供者.因此它会显示在向导中,但不会在运行报告时显示.

Well, this is a little embarrassing. The wizard worked fine in iReport 4.5.0. But it broke in 4.5.1, and somehow no one noticed it. Reports still work fine, so the bug evaded tests. It seems to affect only the Fields Provider. So it shows up in the wizard but not when running the report.

几秒钟前,我上传了该插件的固定版本.您需要卸载现有的Hadoop Hive插件,然后重新启动iReport,然后安装更新的插件.那一切都会好起来的.

I uploaded a fixed version of the plugin seconds ago. You'll need to uninstall the existing Hadoop Hive plugin, then restart iReport, then install the updated plugin. Then all should be well.

这是常规项目链接.这是直接链接的新文件.当下一版本的iReport附带固定的Hive插件时,这一切都应该过时了.

Here's the general project link. Here's the new file linked directly. This should all be obsolete when the next version of iReport ships with the fixed Hive plugin.

这篇关于Jaspersoft ireport设计器4.5.1/4.6.0&蜂巢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆