You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/05/05 01:47:42 UTC

[GitHub] [incubator-doris] morningman commented on a diff in pull request #9198: [enhancement] (odbc) support more ODBC Connection Parameters for odbc external table

morningman commented on code in PR #9198:
URL: https://github.com/apache/incubator-doris/pull/9198#discussion_r857138110


##########
fe/fe-core/src/main/java/org/apache/doris/catalog/OdbcTable.java:
##########
@@ -417,6 +482,8 @@ public void readFields(DataInput in) throws IOException {
         odbcTableName = serializeMap.get(ODBC_TABLE);
         driver = serializeMap.get(ODBC_DRIVER);
         odbcTableTypeName = serializeMap.get(ODBC_TYPE);
+        charset = serializeMap.get(ODBC_CHARSET);
+        extraParam = serializeMap.get(ODBC_EXTRA_PARAM);

Review Comment:
   Please update he help doc of `create table` to add example for these 2 params. 



##########
docs/zh-CN/faq/error.md:
##########
@@ -149,3 +149,16 @@ failed to initialize storage reader. tablet=63416.1050661139.aa4d304e7a7aff9c-f0
 ### E12.Doris编译安装JDK版本不兼容问题
 
 在自己使用 Docker 编译 Doris 的时候,编译完成安装以后启动FE,出现 ```java.lang.Suchmethoderror: java.nio. ByteBuffer. limit (I)Ljava/nio/ByteBuffer;``` 异常信息,这是因为Docker里默认是JDK 11,如果你的安装环境是使用JDK8 ,需要在 Docker 里 JDK 环境切换成 JDK8,具体切换方法参照[编译](https://doris.apache.org/zh-CN/installing/compilation.html)
+
+### E13. Doris 升级到1.0 以后版本通过ODBC访问MySQL外表报错 `Failed to set ciphers to use (2026)`
+这个问题出现在doris 升级到1.0 版本以后,且使用 Connector/ODBC 8.0.x 以上版本,Connector/ODBC 8.0.x 有多重获取方式,比如通过yum安装的的方式获取的 `/usr/lib64/libmyodbc8w.so` 依赖的是 `libssl.so.10` 和 `libcrypto.so.10`

Review Comment:
   ```suggestion
   这个问题出现在doris 升级到1.0 版本以后,且使用 Connector/ODBC 8.0.x 以上版本,Connector/ODBC 8.0.x 有多种获取方式,比如通过yum安装的的方式获取的 `/usr/lib64/libmyodbc8w.so` 依赖的是 `libssl.so.10` 和 `libcrypto.so.10`
   ```



##########
docs/zh-CN/faq/error.md:
##########
@@ -149,3 +149,16 @@ failed to initialize storage reader. tablet=63416.1050661139.aa4d304e7a7aff9c-f0
 ### E12.Doris编译安装JDK版本不兼容问题
 
 在自己使用 Docker 编译 Doris 的时候,编译完成安装以后启动FE,出现 ```java.lang.Suchmethoderror: java.nio. ByteBuffer. limit (I)Ljava/nio/ByteBuffer;``` 异常信息,这是因为Docker里默认是JDK 11,如果你的安装环境是使用JDK8 ,需要在 Docker 里 JDK 环境切换成 JDK8,具体切换方法参照[编译](https://doris.apache.org/zh-CN/installing/compilation.html)
+
+### E13. Doris 升级到1.0 以后版本通过ODBC访问MySQL外表报错 `Failed to set ciphers to use (2026)`
+这个问题出现在doris 升级到1.0 版本以后,且使用 Connector/ODBC 8.0.x 以上版本,Connector/ODBC 8.0.x 有多重获取方式,比如通过yum安装的的方式获取的 `/usr/lib64/libmyodbc8w.so` 依赖的是 `libssl.so.10` 和 `libcrypto.so.10`
+而doris 1.0 以后版本中openssl 已经升级到1.1 且内置在doris 二进制包中,因此会导致 openssl 的冲突进而出现 类似 如下的错误
+```
+ERROR 1105 (HY000): errCode = 2, detailMessage = driver connect Error: HY000 [MySQL][ODBC 8.0(w) Driver]SSL connection error: Failed to set ciphers to use (2026)
+```
+解决方式是使用`Connector/ODBC 8.0.28` 版本的 ODBC Connector, 并且选择 在操作系统处选择 `Linux - Generic`, 这个版本的ODBC Driver 使用 openssl 1,1 版本。具体使用方式见 [ODBC外表使用文档](../extending-doris/odbc-of-doris.md)

Review Comment:
   这里直接给一个mysql driver的下载连接吧



##########
docs/zh-CN/faq/error.md:
##########
@@ -149,3 +149,16 @@ failed to initialize storage reader. tablet=63416.1050661139.aa4d304e7a7aff9c-f0
 ### E12.Doris编译安装JDK版本不兼容问题
 
 在自己使用 Docker 编译 Doris 的时候,编译完成安装以后启动FE,出现 ```java.lang.Suchmethoderror: java.nio. ByteBuffer. limit (I)Ljava/nio/ByteBuffer;``` 异常信息,这是因为Docker里默认是JDK 11,如果你的安装环境是使用JDK8 ,需要在 Docker 里 JDK 环境切换成 JDK8,具体切换方法参照[编译](https://doris.apache.org/zh-CN/installing/compilation.html)
+
+### E13. Doris 升级到1.0 以后版本通过ODBC访问MySQL外表报错 `Failed to set ciphers to use (2026)`
+这个问题出现在doris 升级到1.0 版本以后,且使用 Connector/ODBC 8.0.x 以上版本,Connector/ODBC 8.0.x 有多重获取方式,比如通过yum安装的的方式获取的 `/usr/lib64/libmyodbc8w.so` 依赖的是 `libssl.so.10` 和 `libcrypto.so.10`
+而doris 1.0 以后版本中openssl 已经升级到1.1 且内置在doris 二进制包中,因此会导致 openssl 的冲突进而出现 类似 如下的错误
+```
+ERROR 1105 (HY000): errCode = 2, detailMessage = driver connect Error: HY000 [MySQL][ODBC 8.0(w) Driver]SSL connection error: Failed to set ciphers to use (2026)
+```
+解决方式是使用`Connector/ODBC 8.0.28` 版本的 ODBC Connector, 并且选择 在操作系统处选择 `Linux - Generic`, 这个版本的ODBC Driver 使用 openssl 1,1 版本。具体使用方式见 [ODBC外表使用文档](../extending-doris/odbc-of-doris.md)

Review Comment:
   ```suggestion
   解决方式是使用`Connector/ODBC 8.0.28` 版本的 ODBC Connector, 并且选择 在操作系统处选择 `Linux - Generic`, 这个版本的ODBC Driver 使用 openssl 1.1 版本。具体使用方式见 [ODBC外表使用文档](../extending-doris/odbc-of-doris.md)
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org