majinju/kettle-manager

How can I integrate big-data-plugin into a web project?

Closed this issue · 2 comments

REIGE commented

Hello,

I want to integrate PDI into my web project, and now I can integrate the functionality under the kettle-engine package. But there is something wrong with integrating big-data-plugin.

Example:

I need a HBaseInput and HBaseOutput, so I initialized it like this:

KettleEnvironment.init();
PluginRegistry registry = PluginRegistry.getInstance();
PluginInterface pluginInterface= registry.findPluginWithId(StepPluginType.class, "HBaseInput");
HBaseInputMeta meta = (HBaseInputMeta)registry.loadClass(pluginInterface);

But the line 4 causes [ClassCastException]

I looked at the source and found that they are different classloaders.

So I don't know how to integrate this into my project now, I am not familiar with OSGI. : (

Could you help me ?

Many thanks in advance. : )

本系统默认没有集成kettle的额外插件库,如需要使用hive等大数据等插件,需要将data-integration-8.3中的plugins目录拷贝到解压目录中sjsj/hd目录下。