首页 > 解决方案 > Beeline CLI 创建 txt 文件命令?

问题描述

我最近开始使用 Beelines CLI 与 Hive 服务器交互。问题是创建文件命令对我来说失败了。

我尝试了以下方法:

add FILE[S] 'example.txt';

返回此错误:

Error: Error while processing statement: null (state=,code=1)

标签: hivebeeline

解决方案


您应该从路径中删除引号。IE

beeline> add file example.txt;

还要确保您只是将文件添加到正在运行的服务器配置单元。


推荐阅读