hive 入门,
hive> select * from ljh_emp;
OK
Time taken: 0.145 seconds
hive> load data local inpath '/usr/local/hive/yc_test/test' into table ljh_emp;
Copying data from file:/usr/local/hive/yc_test/test
Copying file: file:/usr/local/hive/yc_test/test
Loading data to table default.ljh_emp
Table default.ljh_emp stats: [num_partitions: 0, num_files: 1, num_rows: 0, total_size: 51, raw_data_size: 0]
OK
Time taken: 1.944 seconds
hive> select * from ljh_emp;
OK
ljh 25000.0 male
jediael 25000.0 male
llq 15000.0 female
Time taken: 0.234 seconds, Fetched: 3 row(s)
hive> ok
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。