apache-nifi我正在嘗試在遠程服務(wù)器中運行一臺服務(wù)器和 postgresql。當我嘗試將記錄插入遠程數(shù)據(jù)庫時,出現(xiàn)以下錯誤。java.sql.SQLException:無法為連接 URL 'jdbc:postgresql//123.456.789.12:5432/test?stringtype=unspecified' 創(chuàng)建類 'org.postgresql.Driver' 的 JDBC 驅(qū)動程序在這里,我使用stringtype=unspecified它,因為它是以下解決方案: 列的類型為時間戳,沒有時區(qū),但表達式的類型為字符變化:Nifi在我的PutDatabaseRecord處理器中。數(shù)據(jù)庫連接網(wǎng)址:jdbc:postgresql//123.456.789.12:5432/test?stringtype=unspecified數(shù)據(jù)庫驅(qū)動程序類名:org.postgresql.Driver數(shù)據(jù)庫驅(qū)動程序位置:/opt/postgresql-42.2.8.jre6.jarjar 文件放置在兩臺服務(wù)器上的同一位置。我缺少什么?nifi和數(shù)據(jù)庫應該運行在同一臺服務(wù)器上嗎?編輯 :nifi-log2019-10-29 07:35:23,062 錯誤 [定時器驅(qū)動進程線程 8] oanpstandard.PutDatabaseRecord PutDatabaseRecord[id=f1fcb902-a1a2-364e-8223-971e4d0dfa46] 由于 org.apache.nifi.processor 無法處理會話.exception.ProcessException:java.sql.SQLException:無法為連接 URL 'jdbc:postgresql//123.456.789.12:5432/test?stringtype=unspecified' 創(chuàng)建類 'org.postgresql.Driver' 的 JDBC 驅(qū)動程序:org.apache。 nifi.processor.exception.ProcessException:java.sql.SQLException:無法為連接 URL 'jdbc:postgresql//123.456.789.12:5432/test?stringtype=unspecified' org. apache.nifi.processor.exception.ProcessException:java.sql.SQLException:無法為連接 URL 'jdbc:postgresql//123.456.789.12:5432/test?stringtype=unspecified' 創(chuàng)建類 'org.postgresql.Driver' 的 JDBC 驅(qū)動程序
1 回答

HUWWW
TA貢獻1874條經(jīng)驗 獲得超12個贊
請?zhí)砑?code>:您的數(shù)據(jù)庫連接 URL 并檢查
jdbc:postgresql://123.456.789.12:5432/test?stringtype=unspecified
添加回答
舉報
0/150
提交
取消