---
title: 编译TPC-DS时证书引起报错的解决方法
description: "编译TPC-DS时，出现以下报错。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/230RC2/bds/kunpengbds_omniruntime_20_0111.html
sourcePath: /source/zh/kunpengboostkithistory/230RC2/bds/kunpengbds_omniruntime_20_0111.html
indexId: ed970f8e41042ef2979d2d2bc8c2cc891abf0a2f034a5d99591865d6f6d812d580
---
# 编译TPC-DS时证书引起报错的解决方法

#### 问题现象描述

编译TPC-DS时，出现以下报错。

```
curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it.
```


#### 关键过程、根本原因分析

服务器的SSL证书无法被curl信任。


#### 结论、解决方案及效果

需要在curl命令后面添加参数-k，跳过SSL证书验证，从而避免因证书问题导致的连接失败。

1. 打开“/opt/hive-testbench-hdp3/tpcds-gen/Makefile”文件。
  1 vi /opt/hive-testbench-hdp3/tpcds-gen/Makefile

2. 按“i”进入编辑模式，在curl后面加上-k。
3. 按“Esc”键，输入:wq!，按“Enter”保存并退出编辑。
