Kettle Unable to get list of element types for namespace 'pentaho'

Posted howie-we

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Kettle Unable to get list of element types for namespace 'pentaho'相关的知识,希望对你有一定的参考价值。

我把公司的kettle5.0升级到7.0之后遇到了这个问题,困扰了很久,百度谷歌都查不到结果,所以只能自己查找原因。

由于已经被搞好了,现在无法截图了,总之就是下面这行报错,遇到这个错误的同学估计也不需要看截图就明白:

Unable to get list of element types for namespace ‘pentaho‘

点开Detail里面,会看到是由于下面一句SQL代码导致的,

Caused by: org.pentaho.di.core.exception.KettleDatabaseException: 
An error occurred executing SQL: 
SELECT ID_NAMESPACE FROM R_NAMESPACE WHERE NAME = ?
The data types text and nvarchar are incompatible in the equal to operator.

既然是SQL,那么我把下面一句代码放进对应的DB查询一下,会发现在query里面的错误和上面一样,都是:

The data types text and nvarchar are incompatible in the equal to operator./在等号操作符中,文本和nvarchar数据类型是不兼容的。

也就是说上面的‘?’是nvarchar类型,而NAME字段是text类型导致这个错误,我们确认一下:

运行下面这句

sp_help R_NAMESPACE

技术分享图片

能看到NAME字段的type是text(这里我已经改过了,原本是text,所以加了个注释)。

看到这里答案就很简单了,

直接ALTER TABLE R_NAMESPACE ALTER COLUMN NAME varchar(2000)

然后再测试,一切OK。

 




以上是关于Kettle Unable to get list of element types for namespace 'pentaho'的主要内容,如果未能解决你的问题,请参考以下文章

git clone报错:fatal: unable to access ‘‘: SSL certificate problem: unable to get local issuer cer

git clone报错:fatal: unable to access ‘‘: SSL certificate problem: unable to get local issuer cer

Unable to locate value meta plugin of type (id)

java.lang.RuntimeException: Unable to get provider

[Ubuntu] Error: unable to locate package{成功解决}

[Ubuntu] Error: unable to locate package{成功解决}