Could not find a suitable table factory for ‘org.apache.flink.table.factories.TableSourceFactory‘
啟動(dòng)FLINK SQL Client的時(shí)候
$FLINK_HOME/bin/sql-client.sh embedded -d $FLINK_HOME/conf/sql.my.yaml -l /home/appleyuchi/bigdata/flink-1.12/lib
出現(xiàn)下面的報(bào)錯(cuò):
Exception in thread "main" org.apache.flink.table.client.SqlClientException: Unexpected exception. This is a bug. Please consider filing an issue.
?? ?at org.apache.flink.table.client.SqlClient.main(SqlClient.java:213)
Caused by: org.apache.flink.table.client.gateway.SqlExecutionException: Could not create execution context.
?? ?at org.apache.flink.table.client.gateway.local.ExecutionContext$Builder.build(ExecutionContext.java:818)
?? ?at org.apache.flink.table.client.gateway.local.LocalExecutor.openSession(LocalExecutor.java:227)
?? ?at org.apache.flink.table.client.SqlClient.start(SqlClient.java:108)
?? ?at org.apache.flink.table.client.SqlClient.main(SqlClient.java:201)
Caused by: org.apache.flink.table.api.NoMatchingTableFactoryException:
Could not find a suitable table factory for 'org.apache.flink.table.factories.TableSourceFactory' in
the classpath.
Reason: Required context properties mismatch.
The matching candidates:
org.apache.flink.table.sources.CsvAppendTableSourceFactory
Mismatched properties:
'connector.type' expects 'filesystem', but is 'kafka'
'format.type' expects 'csv', but is 'json'
?
最后兩句啥意思:
| 報(bào)錯(cuò)信息 | sql.my.yaml中具體位置 |
| 'connector.type' expects 'filesystem', but is 'kafka' | |
| 'format.type' expects 'csv', but is 'json' |
?
解決方案[1]:
$FLINK_HOME/conf/sql.my.yaml中的kafka版本修改為universal
Reference:
[1]Flink編程報(bào)錯(cuò)集錦
?
總結(jié)
以上是生活随笔為你收集整理的Could not find a suitable table factory for ‘org.apache.flink.table.factories.TableSourceFactory‘的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 玄元剑仙绝学有什么用
- 下一篇: uc浏览器如何设置无痕模式