Hive安装中内嵌模式的示例分析

2023-04-09 10:39:00 模式 示例 内嵌

.

Hive安装中内嵌模式的示例分析

hive> CREATE TABLE mytable (key int, value string);

OK

Time taken: 0.131 seconds

hive> LOAD DATA LOCAL INPATH '/tmp/mydata.txt' INTO TABLE mytable;

Loading data to table default.mytable

OK

Time taken: 1.545 seconds

hive> SELECT * FROM mytable;

OK

1 one

2 two

3 three

4 four

5 five

6 six

7 seven

8 eight

9 nine

10 ten

11 eleven

12 twelve

Time taken: 0.162 seconds, Fetched: 12 row(s)

hive>

相关文章