gpt4 book ai didi

hadoop - 在 hive 中创建表格时位置的用途是什么

转载 作者:行者123 更新时间:2023-12-02 20:54:05 24 4
gpt4 key购买 nike

我在 hive 中创建表

create table table1(id in,name string)
row format delimited
fields terminated by ','
stored as textfile
location'/home/training/desktop/shared/EMP_DATA.txt'

我想知道位置的用途,即使它没有将数据加载到表中
经核实
select * from table;

那么位置的用途是什么

最佳答案

位置用于覆盖默认配置单元表目录。它告诉您表的数据将存储在何处。

关于hadoop - 在 hive 中创建表格时位置的用途是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45116463/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com