Use Hive,
// See Mac current Pathecho $PATH
// Add a path to the Mac current Path
export PATH=${PATH}:/Users/chen668/hadoop
// Set Hadoop_home Env
export HADOOP_HOME=/Users/chen668/hadoop
//Start hive
bin/hive
//Create Table
CREATE TABLE tcss(domain_id INT,lgo_time STRING, log_date STRING, log_type INT, uin BIGINT ) ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' LOCATION '/user/hivestest/tcss';
create table cite (citing INT, cited INT)
> row format delimited
> fields terminated by ','
> stored as textfile;
// Other hive command
show tables;
describe tcss;
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。