hive数仓编写UDF时,idea中jar包下载失败
1,编写hiveUDF时,jar包下载失败,需要在maven中配置以下参数,忽略SSL证书校验
原因:由于http与https协议问题。
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true
配置步骤:Setting->Maven->Runner->VM options中添加上述参数
![在这里插入图片描述](https://img-blog.csdnimg.cn/20201210173806212.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0hpbW1hNzE=,size_16,color_FFFFFF,t_70)
2,编写hiveUDF时,pentaho-aggdesigner-algorithm:jar:5.1.5-jhyde包下载失败时
报错:Downloading org.pentaho:pentaho-aggdesigner-algorithm:jar:5.1.5-jhyde
原因分析:maven中的依赖包下载指向的是maven的中央库,但上边的jar包是在spring-plugin中
解决方式:
1,前往maven的中央库,搜索pentaho-aggdesigner-algorithm,查看spring-plugin地址
2,在pom文件中配置spring-plugin指向路径
<repositories>
<repository>
<id>spring-plugin</id>
<url>https://repo.spring.io/plugins-release/</url>
</repository>
</repositories>
![在这里插入图片描述](https://img-blog.csdnimg.cn/20201210174029911.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0hpbW1hNzE=,size_16,color_FFFFFF,t_70)
3,idea内存溢出
报错:Exception in thread main java.lang.StackOverflowError
原因分析:栈溢出
解决方式:
方式一:在idea安装路径bin目录下修改文件idea.exe.vmoptions文件相关参数
方式二:Setting->Macen->Runner->VM options 中添加参数最前边添加-Xss2m(空格隔开)
![在这里插入图片描述](https://img-blog.csdnimg.cn/20201210174200308.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0hpbW1hNzE=,size_16,color_FFFFFF,t_70)