hive UDF使用本地文件资源

来源:互联网 发布:单片机交通灯设计方案 编辑:程序博客网 时间:2024/06/05 21:24

a、未注册用本地地址,e.g. String filepath = "/data/aaa.txt";

b、注册至hive后用相对地址,e.g.String filepath = "./aaa.txt";

注:

hive中注册 add jar [jar file path] or add file [file path]


0 0
原创粉丝点击