Practice Questions
Practice Questions
******************************************************************************
Important Hdfs command
***********************************************************************************
14 upload file from hdfs to local : Hadoop fs -get (path of hdfs) (path of local)
******************************************************************************
Important Hive command
***********************************************************************************
4 create table : create table tablename(id int, name string, salary int)
row format delimited
fields terminated by ',';
5 Load data : load data local inpath (path of file) into table tablename;
or
insert into tablename(id,name,salary) values (1,name1,100000) , (1,name1,100000),
(1,name1,100000);
7 map Datatype :
create table tab(city string, gender string, collection map<int,int>)
> row format delimited
> fields terminated by '\t'
> collection items terminated by ','
> map keys terminated by ':';
set hive.exec.dynamic.partition.mode=nonstrict;
set hive.enforce.bucketing=true;
******************************************************************************
Important Hbase command
***********************************************************************************
9 Alter or version control : alter ‘test_table’, {NAME => ‘colfam1’, VERSIONS => 2}