---
title: 编译TPC-DS时证书引起报错的解决方法
description: "编译TPC-DS时，出现以下报错。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/2400/bds/kunpengbds_omniruntime_20_0420.html
sourcePath: /source/zh/kunpengboostkithistory/2400/bds/kunpengbds_omniruntime_20_0420.html
indexId: 240ea5ca7e81bd0ce24d98e302cc57e65292bbf93a455cb8b52b2fa59c59835878
---
# 编译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”保存并退出编辑。
