hive小需求记录

1.需要将mysql导入到hive

db -e "set names utf8;select * t1 where day=20151120"  > /data/order/20151120
hdfs -v dfs -copyFromLocal  /data/order/* /data/order/

add file hdfs://yq01-heng-hdfs.dmop.baidu.com:54310/data/order/20151120;
list file;
b
a

/home/work/ark_magi/worker/work/normal/magi-2.0.23_20151121145420-4/working/resources/20151120

load data local inpath "resources/20151120" overwrite into table t5;

你可能感兴趣的:(hive/hadoop)